commit | 4e645e9bc69350f9799262584ad8b82255d0dd8e | [log] [tgz] |
---|---|---|
author | wangxianzhu <[email protected]> | Wed Oct 08 01:01:07 2014 |
committer | Commit bot <[email protected]> | Wed Oct 08 01:01:57 2014 |
tree | 8dfbd50ac7cf22afd8661ecfa8dac80f47298c79 | |
parent | 8dcb66271af8067acfac29c6cdc1d0f225bb9738 [diff] [blame] |
Pass correct country iso code to PhoneNumberDetector A typo in https://codereview.chromium.org/254823005 caused wrong parameter is passed to PhoneNumberDetector, causing detection failure of phone numbers without full country code. BUG=418704 Review URL: https://codereview.chromium.org/638753002 Cr-Commit-Position: refs/heads/master@{#298628}
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc index df9f413..5e68a868 100644 --- a/content/renderer/render_view_impl.cc +++ b/content/renderer/render_view_impl.cc
@@ -724,7 +724,7 @@ const std::string region_code = command_line.HasSwitch(switches::kNetworkCountryIso) ? command_line.GetSwitchValueASCII(switches::kNetworkCountryIso) - : net::android::GetTelephonyNetworkOperator(); + : net::android::GetTelephonyNetworkCountryIso(); content_detectors_.push_back(linked_ptr<ContentDetector>( new AddressDetector())); content_detectors_.push_back(linked_ptr<ContentDetector>(