From 1772c1ae7194b0efdbd3c65d1654902daabb1c51 Mon Sep 17 00:00:00 2001 From: avi Date: Mon, 22 Dec 2014 14:42:33 -0800 Subject: Make callers of CommandLine use it via the base:: namespace. Covers cloud_print/ and components/. BUG=422426 TEST=none TBR=ben@chromium.org Review URL: https://codereview.chromium.org/818103002 Cr-Commit-Position: refs/heads/master@{#309475} --- components/search/search.cc | 4 ++-- components/search/search_android_unittest.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'components/search') diff --git a/components/search/search.cc b/components/search/search.cc index d7e7276..c2d4b4e 100644 --- a/components/search/search.cc +++ b/components/search/search.cc @@ -67,8 +67,8 @@ bool IsInstantExtendedAPIEnabled() { // default search provider. If 0, the embedded search UI should not be enabled. uint64 EmbeddedSearchPageVersion() { #if defined(OS_ANDROID) - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableEmbeddedSearchAPI)) { + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kEnableEmbeddedSearchAPI)) { return kEmbeddedSearchEnabledVersion; } #endif diff --git a/components/search/search_android_unittest.cc b/components/search/search_android_unittest.cc index 9c67edff..772daaf 100644 --- a/components/search/search_android_unittest.cc +++ b/components/search/search_android_unittest.cc @@ -19,7 +19,7 @@ namespace { TEST(SearchTest, EmbeddedSearchAPIEnabled) { EXPECT_EQ(1ul, EmbeddedSearchPageVersion()); EXPECT_FALSE(IsInstantExtendedAPIEnabled()); - CommandLine::ForCurrentProcess()->AppendSwitch( + base::CommandLine::ForCurrentProcess()->AppendSwitch( switches::kEnableEmbeddedSearchAPI); EXPECT_EQ(2ul, EmbeddedSearchPageVersion()); EXPECT_TRUE(IsInstantExtendedAPIEnabled()); -- cgit v1.1