summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-06-09 15:39:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-09 22:39:37 +0000
commitbc17d2c8d864a118f48a84de0709f5a6c463cffd (patch)
tree1b22817d8ab1d8797b14d734f0f2924c4db1736b /chrome/browser
parent952985e3821fea40f284004cae13795f8a3db489 (diff)
downloadchromium_src-bc17d2c8d864a118f48a84de0709f5a6c463cffd.zip
chromium_src-bc17d2c8d864a118f48a84de0709f5a6c463cffd.tar.gz
chromium_src-bc17d2c8d864a118f48a84de0709f5a6c463cffd.tar.bz2
Move LowerCaseEqualsASCII to base namespace
Remove url:: variants. Add the 4-element version from url:: to base:: Review URL: https://codereview.chromium.org/1172753003 Cr-Commit-Position: refs/heads/master@{#333597}
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/auto_launch_trial.cc4
-rw-r--r--chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc6
-rw-r--r--chrome/browser/autocomplete/history_url_provider.cc2
-rw-r--r--chrome/browser/browser_about_handler.cc4
-rw-r--r--chrome/browser/chromeos/events/event_rewriter.cc6
-rw-r--r--chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc2
-rw-r--r--chrome/browser/download/download_extensions.cc2
-rw-r--r--chrome/browser/io_thread.cc18
-rw-r--r--chrome/browser/memory_details.cc10
-rw-r--r--chrome/browser/net/firefox_proxy_settings.cc4
-rw-r--r--chrome/browser/profiles/profile_impl_io_data.cc4
-rw-r--r--chrome/browser/safe_browsing/malware_details_cache.cc2
-rw-r--r--chrome/browser/ssl/ssl_browser_tests.cc8
-rw-r--r--chrome/browser/themes/browser_theme_pack.cc5
-rw-r--r--chrome/browser/themes/theme_properties.cc14
-rw-r--r--chrome/browser/ui/app_list/search/common/webservice_search_provider.cc4
-rw-r--r--chrome/browser/ui/app_list/search/webstore/webstore_provider.cc6
-rw-r--r--chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc2
-rw-r--r--chrome/browser/ui/login/login_prompt.cc4
-rw-r--r--chrome/browser/ui/views/keyboard_access_browsertest.cc2
-rw-r--r--chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc6
21 files changed, 59 insertions, 56 deletions
diff --git a/chrome/browser/auto_launch_trial.cc b/chrome/browser/auto_launch_trial.cc
index ae53d7b..a235de7 100644
--- a/chrome/browser/auto_launch_trial.cc
+++ b/chrome/browser/auto_launch_trial.cc
@@ -24,11 +24,11 @@ bool IsInAutoLaunchGroup() {
}
bool IsInExperimentGroup(const std::string& brand_code) {
- return LowerCaseEqualsASCII(brand_code, "rngp");
+ return base::LowerCaseEqualsASCII(brand_code, "rngp");
}
bool IsInControlGroup(const std::string& brand_code) {
- return LowerCaseEqualsASCII(brand_code, "rngq");
+ return base::LowerCaseEqualsASCII(brand_code, "rngq");
}
} // namespace auto_launch_trial
diff --git a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
index c64520f..61e5f32 100644
--- a/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
+++ b/chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.cc
@@ -25,9 +25,9 @@ ChromeAutocompleteSchemeClassifier::GetInputTypeForScheme(
const std::string& scheme) const {
if (base::IsStringASCII(scheme) &&
(ProfileIOData::IsHandledProtocol(scheme) ||
- LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) ||
- LowerCaseEqualsASCII(scheme, url::kJavaScriptScheme) ||
- LowerCaseEqualsASCII(scheme, url::kDataScheme))) {
+ base::LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) ||
+ base::LowerCaseEqualsASCII(scheme, url::kJavaScriptScheme) ||
+ base::LowerCaseEqualsASCII(scheme, url::kDataScheme))) {
return metrics::OmniboxInputType::URL;
}
diff --git a/chrome/browser/autocomplete/history_url_provider.cc b/chrome/browser/autocomplete/history_url_provider.cc
index 93581bf..7f59e68 100644
--- a/chrome/browser/autocomplete/history_url_provider.cc
+++ b/chrome/browser/autocomplete/history_url_provider.cc
@@ -968,7 +968,7 @@ bool HistoryURLProvider::CanFindIntranetURL(
// input's text and parts between Parse() and here, it seems better to be
// paranoid and check.
if ((input.type() != metrics::OmniboxInputType::UNKNOWN) ||
- !LowerCaseEqualsASCII(input.scheme(), url::kHttpScheme) ||
+ !base::LowerCaseEqualsASCII(input.scheme(), url::kHttpScheme) ||
!input.parts().host.is_nonempty())
return false;
const std::string host(base::UTF16ToUTF8(
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 42a453a..81b19ca 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -103,13 +103,13 @@ bool WillHandleBrowserAboutURL(GURL* url,
bool HandleNonNavigationAboutURL(const GURL& url) {
const std::string spec(url.spec());
- if (LowerCaseEqualsASCII(spec, chrome::kChromeUIRestartURL)) {
+ if (base::LowerCaseEqualsASCII(spec, chrome::kChromeUIRestartURL)) {
// Call AttemptRestart after chrome::Navigate() completes to avoid access of
// gtk objects after they are destroyed by BrowserWindowGtk::Close().
base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&chrome::AttemptRestart));
return true;
- } else if (LowerCaseEqualsASCII(spec, chrome::kChromeUIQuitURL)) {
+ } else if (base::LowerCaseEqualsASCII(spec, chrome::kChromeUIQuitURL)) {
base::MessageLoop::current()->PostTask(FROM_HERE,
base::Bind(&chrome::AttemptExit));
return true;
diff --git a/chrome/browser/chromeos/events/event_rewriter.cc b/chrome/browser/chromeos/events/event_rewriter.cc
index 4d75023..2d0ce2d 100644
--- a/chrome/browser/chromeos/events/event_rewriter.cc
+++ b/chrome/browser/chromeos/events/event_rewriter.cc
@@ -145,7 +145,7 @@ EventRewriter::DeviceType GetDeviceType(const std::string& device_name,
return EventRewriter::kDeviceHotrodRemote;
}
- if (LowerCaseEqualsASCII(device_name, "virtual core keyboard"))
+ if (base::LowerCaseEqualsASCII(device_name, "virtual core keyboard"))
return EventRewriter::kDeviceVirtualCoreKeyboard;
std::vector<std::string> tokens;
@@ -157,9 +157,9 @@ EventRewriter::DeviceType GetDeviceType(const std::string& device_name,
bool found_apple = false;
bool found_keyboard = false;
for (size_t i = 0; i < tokens.size(); ++i) {
- if (!found_apple && LowerCaseEqualsASCII(tokens[i], "apple"))
+ if (!found_apple && base::LowerCaseEqualsASCII(tokens[i], "apple"))
found_apple = true;
- if (!found_keyboard && LowerCaseEqualsASCII(tokens[i], "keyboard"))
+ if (!found_keyboard && base::LowerCaseEqualsASCII(tokens[i], "keyboard"))
found_keyboard = true;
if (found_apple && found_keyboard)
return EventRewriter::kDeviceAppleKeyboard;
diff --git a/chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc b/chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc
index e20daf5..d423c32 100644
--- a/chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc
+++ b/chrome/browser/chromeos/input_method/component_extension_ime_manager_impl.cc
@@ -166,7 +166,7 @@ scoped_ptr<base::DictionaryValue> ComponentExtensionIMEManagerImpl::GetManifest(
// static
bool ComponentExtensionIMEManagerImpl::IsIMEExtensionID(const std::string& id) {
for (size_t i = 0; i < arraysize(whitelisted_component_extension); ++i) {
- if (LowerCaseEqualsASCII(id, whitelisted_component_extension[i].id))
+ if (base::LowerCaseEqualsASCII(id, whitelisted_component_extension[i].id))
return true;
}
return false;
diff --git a/chrome/browser/download/download_extensions.cc b/chrome/browser/download/download_extensions.cc
index 623bdf4..df961a5 100644
--- a/chrome/browser/download/download_extensions.cc
+++ b/chrome/browser/download/download_extensions.cc
@@ -221,7 +221,7 @@ DownloadDangerLevel GetFileDangerLevel(const base::FilePath& path) {
ascii_extension.erase(0, 1);
for (size_t i = 0; i < arraysize(g_executables); ++i) {
- if (LowerCaseEqualsASCII(ascii_extension, g_executables[i].extension))
+ if (base::LowerCaseEqualsASCII(ascii_extension, g_executables[i].extension))
return g_executables[i].level;
}
return NOT_DANGEROUS;
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index cb9f69e..42bbf7c 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -1036,17 +1036,17 @@ void IOThread::ConfigureSpdyGlobals(
}
if (spdy_trial_group.starts_with(kSpdyFieldTrialParametrizedPrefix)) {
bool spdy_enabled = false;
- if (LowerCaseEqualsASCII(
+ if (base::LowerCaseEqualsASCII(
GetVariationParam(spdy_trial_params, "enable_spdy31"), "true")) {
globals->next_protos.push_back(net::kProtoSPDY31);
spdy_enabled = true;
}
- if (LowerCaseEqualsASCII(
+ if (base::LowerCaseEqualsASCII(
GetVariationParam(spdy_trial_params, "enable_http2_14"), "true")) {
globals->next_protos.push_back(net::kProtoSPDY4_14);
spdy_enabled = true;
}
- if (LowerCaseEqualsASCII(
+ if (base::LowerCaseEqualsASCII(
GetVariationParam(spdy_trial_params, "enable_http2"), "true")) {
globals->next_protos.push_back(net::kProtoSPDY4);
spdy_enabled = true;
@@ -1412,7 +1412,7 @@ bool IOThread::ShouldEnableQuicForDataReductionProxy() {
// static
bool IOThread::ShouldDisableInsecureQuic(
const VariationParameters& quic_trial_params) {
- return LowerCaseEqualsASCII(
+ return base::LowerCaseEqualsASCII(
GetVariationParam(quic_trial_params, "disable_insecure_quic"),
"true");
}
@@ -1482,7 +1482,7 @@ double IOThread::GetAlternativeProtocolProbabilityThreshold(
// static
bool IOThread::ShouldQuicAlwaysRequireHandshakeConfirmation(
const VariationParameters& quic_trial_params) {
- return LowerCaseEqualsASCII(
+ return base::LowerCaseEqualsASCII(
GetVariationParam(quic_trial_params,
"always_require_handshake_confirmation"),
"true");
@@ -1491,7 +1491,7 @@ bool IOThread::ShouldQuicAlwaysRequireHandshakeConfirmation(
// static
bool IOThread::ShouldQuicDisableConnectionPooling(
const VariationParameters& quic_trial_params) {
- return LowerCaseEqualsASCII(
+ return base::LowerCaseEqualsASCII(
GetVariationParam(quic_trial_params, "disable_connection_pooling"),
"true");
}
@@ -1511,7 +1511,7 @@ float IOThread::GetQuicLoadServerInfoTimeoutSrttMultiplier(
// static
bool IOThread::ShouldQuicEnableConnectionRacing(
const VariationParameters& quic_trial_params) {
- return LowerCaseEqualsASCII(
+ return base::LowerCaseEqualsASCII(
GetVariationParam(quic_trial_params, "enable_connection_racing"),
"true");
}
@@ -1519,7 +1519,7 @@ bool IOThread::ShouldQuicEnableConnectionRacing(
// static
bool IOThread::ShouldQuicEnableNonBlockingIO(
const VariationParameters& quic_trial_params) {
- return LowerCaseEqualsASCII(
+ return base::LowerCaseEqualsASCII(
GetVariationParam(quic_trial_params, "enable_non_blocking_io"),
"true");
}
@@ -1527,7 +1527,7 @@ bool IOThread::ShouldQuicEnableNonBlockingIO(
// static
bool IOThread::ShouldQuicDisableDiskCache(
const VariationParameters& quic_trial_params) {
- return LowerCaseEqualsASCII(
+ return base::LowerCaseEqualsASCII(
GetVariationParam(quic_trial_params, "disable_disk_cache"), "true");
}
diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc
index 784cd21..c6a7e7c 100644
--- a/chrome/browser/memory_details.cc
+++ b/chrome/browser/memory_details.cc
@@ -343,11 +343,13 @@ void MemoryDetails::CollectChildInfoOnUIThread() {
const NavigationEntry* last_committed_entry =
contents->GetController().GetLastCommittedEntry();
if ((last_committed_entry &&
- LowerCaseEqualsASCII(last_committed_entry->GetVirtualURL().spec(),
- chrome::kChromeUIMemoryURL)) ||
+ base::LowerCaseEqualsASCII(
+ last_committed_entry->GetVirtualURL().spec(),
+ chrome::kChromeUIMemoryURL)) ||
(pending_entry &&
- LowerCaseEqualsASCII(pending_entry->GetVirtualURL().spec(),
- chrome::kChromeUIMemoryURL))) {
+ base::LowerCaseEqualsASCII(
+ pending_entry->GetVirtualURL().spec(),
+ chrome::kChromeUIMemoryURL))) {
process.is_diagnostics = true;
}
}
diff --git a/chrome/browser/net/firefox_proxy_settings.cc b/chrome/browser/net/firefox_proxy_settings.cc
index 7b135b9..39dd5f1 100644
--- a/chrome/browser/net/firefox_proxy_settings.cc
+++ b/chrome/browser/net/firefox_proxy_settings.cc
@@ -106,8 +106,8 @@ bool ParsePrefFile(const base::FilePath& pref_file,
stop_value - start_value - 1);
base::TrimWhitespace(value, base::TRIM_ALL, &value);
// Value could be a boolean.
- bool is_value_true = LowerCaseEqualsASCII(value, "true");
- if (is_value_true || LowerCaseEqualsASCII(value, "false")) {
+ bool is_value_true = base::LowerCaseEqualsASCII(value, "true");
+ if (is_value_true || base::LowerCaseEqualsASCII(value, "false")) {
prefs->SetBoolean(key, is_value_true);
continue;
}
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 8bf401e..c7bdfdcc 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -74,9 +74,9 @@ net::BackendType ChooseCacheBackendType() {
if (command_line.HasSwitch(switches::kUseSimpleCacheBackend)) {
const std::string opt_value =
command_line.GetSwitchValueASCII(switches::kUseSimpleCacheBackend);
- if (LowerCaseEqualsASCII(opt_value, "off"))
+ if (base::LowerCaseEqualsASCII(opt_value, "off"))
return net::CACHE_BACKEND_BLOCKFILE;
- if (opt_value.empty() || LowerCaseEqualsASCII(opt_value, "on"))
+ if (opt_value.empty() || base::LowerCaseEqualsASCII(opt_value, "on"))
return net::CACHE_BACKEND_SIMPLE;
}
const std::string experiment_name =
diff --git a/chrome/browser/safe_browsing/malware_details_cache.cc b/chrome/browser/safe_browsing/malware_details_cache.cc
index 4e8ae12..d70fb11 100644
--- a/chrome/browser/safe_browsing/malware_details_cache.cc
+++ b/chrome/browser/safe_browsing/malware_details_cache.cc
@@ -156,7 +156,7 @@ void MalwareDetailsCacheCollector::ReadResponse(
pb_response->add_headers();
pb_header->set_name(name);
// Strip any Set-Cookie headers.
- if (LowerCaseEqualsASCII(name, "set-cookie")) {
+ if (base::LowerCaseEqualsASCII(name, "set-cookie")) {
pb_header->set_value("");
} else {
pb_header->set_value(value);
diff --git a/chrome/browser/ssl/ssl_browser_tests.cc b/chrome/browser/ssl/ssl_browser_tests.cc
index 223655a..9ca088e 100644
--- a/chrome/browser/ssl/ssl_browser_tests.cc
+++ b/chrome/browser/ssl/ssl_browser_tests.cc
@@ -808,7 +808,7 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, MAYBE_TestWSSInvalidCertAndClose) {
// The title will be changed to 'PASS'.
ui_test_utils::NavigateToURL(browser(), master_url);
const base::string16 result = watcher.WaitAndGetTitle();
- EXPECT_TRUE(LowerCaseEqualsASCII(result, "pass"));
+ EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass"));
// Close tabs which contains the test page.
for (int i = 0; i < 16; ++i)
@@ -844,7 +844,7 @@ IN_PROC_BROWSER_TEST_F(SSLUITest, TestWSSInvalidCertAndGoForward) {
// Test page run a WebSocket wss connection test. The result will be shown
// as page title.
const base::string16 result = watcher.WaitAndGetTitle();
- EXPECT_TRUE(LowerCaseEqualsASCII(result, "pass"));
+ EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass"));
}
#if defined(USE_NSS_CERTS)
@@ -931,7 +931,7 @@ IN_PROC_BROWSER_TEST_F(SSLUITestWithClientCert, TestWSSClientCert) {
// Test page runs a WebSocket wss connection test. The result will be shown
// as page title.
const base::string16 result = watcher.WaitAndGetTitle();
- EXPECT_TRUE(LowerCaseEqualsASCII(result, "pass"));
+ EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass"));
}
#endif // defined(USE_NSS_CERTS)
@@ -2083,7 +2083,7 @@ IN_PROC_BROWSER_TEST_F(SSLUITestIgnoreCertErrors, TestWSS) {
// Test page run a WebSocket wss connection test. The result will be shown
// as page title.
const base::string16 result = watcher.WaitAndGetTitle();
- EXPECT_TRUE(LowerCaseEqualsASCII(result, "pass"));
+ EXPECT_TRUE(base::LowerCaseEqualsASCII(result, "pass"));
}
// Verifies that the interstitial can proceed, even if JavaScript is disabled.
diff --git a/chrome/browser/themes/browser_theme_pack.cc b/chrome/browser/themes/browser_theme_pack.cc
index 6d833eb..51512e6 100644
--- a/chrome/browser/themes/browser_theme_pack.cc
+++ b/chrome/browser/themes/browser_theme_pack.cc
@@ -209,7 +209,8 @@ int GetPersistentIDByNameHelper(const std::string& key,
const PersistingImagesTable* image_table,
size_t image_table_size) {
for (size_t i = 0; i < image_table_size; ++i) {
- if (image_table[i].key && LowerCaseEqualsASCII(key, image_table[i].key)) {
+ if (image_table[i].key &&
+ base::LowerCaseEqualsASCII(key, image_table[i].key)) {
return image_table[i].persistent_id;
}
}
@@ -344,7 +345,7 @@ int GetIntForString(const std::string& key,
StringToIntTable* table,
size_t table_length) {
for (size_t i = 0; i < table_length; ++i) {
- if (LowerCaseEqualsASCII(key, table[i].key)) {
+ if (base::LowerCaseEqualsASCII(key, table[i].key)) {
return table[i].id;
}
}
diff --git a/chrome/browser/themes/theme_properties.cc b/chrome/browser/themes/theme_properties.cc
index 8e184c0..f32530f 100644
--- a/chrome/browser/themes/theme_properties.cc
+++ b/chrome/browser/themes/theme_properties.cc
@@ -145,13 +145,13 @@ int ThemeProperties::StringToAlignment(const std::string& alignment) {
int alignment_mask = 0;
for (std::vector<std::string>::iterator component(split.begin());
component != split.end(); ++component) {
- if (LowerCaseEqualsASCII(*component, kAlignmentTop))
+ if (base::LowerCaseEqualsASCII(*component, kAlignmentTop))
alignment_mask |= ALIGN_TOP;
- else if (LowerCaseEqualsASCII(*component, kAlignmentBottom))
+ else if (base::LowerCaseEqualsASCII(*component, kAlignmentBottom))
alignment_mask |= ALIGN_BOTTOM;
- else if (LowerCaseEqualsASCII(*component, kAlignmentLeft))
+ else if (base::LowerCaseEqualsASCII(*component, kAlignmentLeft))
alignment_mask |= ALIGN_LEFT;
- else if (LowerCaseEqualsASCII(*component, kAlignmentRight))
+ else if (base::LowerCaseEqualsASCII(*component, kAlignmentRight))
alignment_mask |= ALIGN_RIGHT;
}
return alignment_mask;
@@ -159,11 +159,11 @@ int ThemeProperties::StringToAlignment(const std::string& alignment) {
// static
int ThemeProperties::StringToTiling(const std::string& tiling) {
- if (LowerCaseEqualsASCII(tiling, kTilingRepeatX))
+ if (base::LowerCaseEqualsASCII(tiling, kTilingRepeatX))
return REPEAT_X;
- if (LowerCaseEqualsASCII(tiling, kTilingRepeatY))
+ if (base::LowerCaseEqualsASCII(tiling, kTilingRepeatY))
return REPEAT_Y;
- if (LowerCaseEqualsASCII(tiling, kTilingRepeat))
+ if (base::LowerCaseEqualsASCII(tiling, kTilingRepeat))
return REPEAT;
// NO_REPEAT is the default choice.
return NO_REPEAT;
diff --git a/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc b/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc
index a7bcf57..32e64c1 100644
--- a/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc
+++ b/chrome/browser/ui/app_list/search/common/webservice_search_provider.cc
@@ -71,7 +71,7 @@ bool WebserviceSearchProvider::IsSensitiveInput(const base::string16& query) {
// file, we shouldn't send it. Sending such things is a waste of time and a
// disclosure of potentially private, local data. If the scheme is OK, we
// still need to check other cases below.
- if (LowerCaseEqualsASCII(query_as_url.scheme(), url::kFileScheme))
+ if (base::LowerCaseEqualsASCII(query_as_url.scheme(), url::kFileScheme))
return true;
// Don't send URLs with usernames, queries or refs. Some of these are
@@ -90,7 +90,7 @@ bool WebserviceSearchProvider::IsSensitiveInput(const base::string16& query) {
// Don't send anything for https except the hostname. Hostnames are OK
// because they are visible when the TCP connection is established, but the
// specific path may reveal private information.
- if (LowerCaseEqualsASCII(query_as_url.scheme(), url::kHttpsScheme) &&
+ if (base::LowerCaseEqualsASCII(query_as_url.scheme(), url::kHttpsScheme) &&
!query_as_url.path().empty() && query_as_url.path() != "/") {
return true;
}
diff --git a/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc b/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
index 2c43cb3..72f9f06 100644
--- a/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
+++ b/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
@@ -40,13 +40,13 @@ const char kLegacyPackagedAppType[] = "legacy_packaged_app";
// Converts the item type string from the web store to an
// extensions::Manifest::Type.
extensions::Manifest::Type ParseItemType(const std::string& item_type_str) {
- if (LowerCaseEqualsASCII(item_type_str, kPlatformAppType))
+ if (base::LowerCaseEqualsASCII(item_type_str, kPlatformAppType))
return extensions::Manifest::TYPE_PLATFORM_APP;
- if (LowerCaseEqualsASCII(item_type_str, kLegacyPackagedAppType))
+ if (base::LowerCaseEqualsASCII(item_type_str, kLegacyPackagedAppType))
return extensions::Manifest::TYPE_LEGACY_PACKAGED_APP;
- if (LowerCaseEqualsASCII(item_type_str, kHostedAppType))
+ if (base::LowerCaseEqualsASCII(item_type_str, kHostedAppType))
return extensions::Manifest::TYPE_HOSTED_APP;
return extensions::Manifest::TYPE_UNKNOWN;
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index ff627e8..a4111ec 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -3282,7 +3282,7 @@ bool AutofillDialogControllerImpl::CanAcceptCountry(
DCHECK_EQ(2U, country_code.size());
if (section == SECTION_CC_BILLING)
- return LowerCaseEqualsASCII(country_code, "us");
+ return base::LowerCaseEqualsASCII(country_code, "us");
CountryComboboxModel* model = CountryComboboxModelForSection(section);
const std::vector<AutofillCountry*>& countries = model->countries();
diff --git a/chrome/browser/ui/login/login_prompt.cc b/chrome/browser/ui/login/login_prompt.cc
index 95717d5..1c955a1 100644
--- a/chrome/browser/ui/login/login_prompt.cc
+++ b/chrome/browser/ui/login/login_prompt.cc
@@ -432,9 +432,9 @@ void MakeInputForPasswordManager(
LoginHandler* handler,
std::vector<PasswordForm>* password_manager_input) {
PasswordForm dialog_form;
- if (LowerCaseEqualsASCII(auth_info->scheme, "basic")) {
+ if (base::LowerCaseEqualsASCII(auth_info->scheme, "basic")) {
dialog_form.scheme = PasswordForm::SCHEME_BASIC;
- } else if (LowerCaseEqualsASCII(auth_info->scheme, "digest")) {
+ } else if (base::LowerCaseEqualsASCII(auth_info->scheme, "digest")) {
dialog_form.scheme = PasswordForm::SCHEME_DIGEST;
} else {
dialog_form.scheme = PasswordForm::SCHEME_OTHER;
diff --git a/chrome/browser/ui/views/keyboard_access_browsertest.cc b/chrome/browser/ui/views/keyboard_access_browsertest.cc
index 76636d5..5bf8784 100644
--- a/chrome/browser/ui/views/keyboard_access_browsertest.cc
+++ b/chrome/browser/ui/views/keyboard_access_browsertest.cc
@@ -256,7 +256,7 @@ LRESULT CALLBACK SystemMenuTestCBTHook(int n_code,
GetClassName(reinterpret_cast<HWND>(w_param),
class_name,
arraysize(class_name));
- if (LowerCaseEqualsASCII(class_name, "#32768")) {
+ if (base::LowerCaseEqualsASCII(class_name, "#32768")) {
// Select the New Tab option and then send the enter key to execute it.
::PostMessage(reinterpret_cast<HWND>(w_param), WM_CHAR, 'T', 0);
::PostMessage(reinterpret_cast<HWND>(w_param), WM_KEYDOWN, VK_RETURN, 0);
diff --git a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
index cf35c04..abaf4c8 100644
--- a/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
+++ b/chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc
@@ -108,7 +108,7 @@ void GetDeviceInfo(const base::DictionaryValue& properties,
value->SetString("activation_type", activation_type);
value->SetString("carrier", name);
value->SetString("payment_url", payment_url);
- if (LowerCaseEqualsASCII(post_method, "post") && !post_data.empty())
+ if (base::LowerCaseEqualsASCII(post_method, "post") && !post_data.empty())
value->SetString("post_data", post_data);
// Use the cached DeviceState properties.
@@ -464,7 +464,7 @@ void MobileSetupHandler::HandleSetTransactionStatus(
return;
MobileActivator::GetInstance()->OnSetTransactionStatus(
- LowerCaseEqualsASCII(status, kJsApiResultOK));
+ base::LowerCaseEqualsASCII(status, kJsApiResultOK));
}
void MobileSetupHandler::HandlePaymentPortalLoad(const base::ListValue* args) {
@@ -481,7 +481,7 @@ void MobileSetupHandler::HandlePaymentPortalLoad(const base::ListValue* args) {
return;
MobileActivator::GetInstance()->OnPortalLoaded(
- LowerCaseEqualsASCII(result, kJsApiResultOK));
+ base::LowerCaseEqualsASCII(result, kJsApiResultOK));
}
void MobileSetupHandler::HandleGetDeviceInfo(const base::ListValue* args) {