diff options
author | wangxianzhu <wangxianzhu@chromium.org> | 2014-10-07 18:01:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-08 01:01:57 +0000 |
commit | 4e645e9bc69350f9799262584ad8b82255d0dd8e (patch) | |
tree | 8dfbd50ac7cf22afd8661ecfa8dac80f47298c79 | |
parent | 8dcb66271af8067acfac29c6cdc1d0f225bb9738 (diff) | |
download | chromium_src-4e645e9bc69350f9799262584ad8b82255d0dd8e.zip chromium_src-4e645e9bc69350f9799262584ad8b82255d0dd8e.tar.gz chromium_src-4e645e9bc69350f9799262584ad8b82255d0dd8e.tar.bz2 |
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}
-rw-r--r-- | content/renderer/render_view_impl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc index df9f413..5e68a86 100644 --- a/content/renderer/render_view_impl.cc +++ b/content/renderer/render_view_impl.cc @@ -724,7 +724,7 @@ void RenderViewImpl::Initialize(RenderViewImplParams* params) { 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>( |