diff options
author | avi <avi@chromium.org> | 2014-12-22 14:50:17 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-22 22:51:05 +0000 |
commit | 3ef9ec9e43e5e5b7aca6ea935407a469d7b528cf (patch) | |
tree | 96d5759f382e635270a05013501abadf777ca0cf /chrome/browser/extensions/api | |
parent | 1772c1ae7194b0efdbd3c65d1654902daabb1c51 (diff) | |
download | chromium_src-3ef9ec9e43e5e5b7aca6ea935407a469d7b528cf.zip chromium_src-3ef9ec9e43e5e5b7aca6ea935407a469d7b528cf.tar.gz chromium_src-3ef9ec9e43e5e5b7aca6ea935407a469d7b528cf.tar.bz2 |
Make callers of CommandLine use it via the base:: namespace.
Covers chrome/app* and chrome/browser/* through e.
BUG=422426
TEST=none
TBR=ben@chromium.org
Review URL: https://codereview.chromium.org/819133004
Cr-Commit-Position: refs/heads/master@{#309476}
Diffstat (limited to 'chrome/browser/extensions/api')
46 files changed, 88 insertions, 78 deletions
diff --git a/chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc b/chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc index 5b05b62..126ce54 100644 --- a/chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc +++ b/chrome/browser/extensions/api/activity_log_private/activity_log_private_apitest.cc @@ -21,16 +21,16 @@ namespace extensions { class ActivityLogApiTest : public ExtensionApiTest { public: - ActivityLogApiTest() : saved_cmdline_(CommandLine::NO_PROGRAM) {} + ActivityLogApiTest() : saved_cmdline_(base::CommandLine::NO_PROGRAM) {} ~ActivityLogApiTest() override { ExtensionApiTest::SetUpCommandLine(&saved_cmdline_); - *CommandLine::ForCurrentProcess() = saved_cmdline_; + *base::CommandLine::ForCurrentProcess() = saved_cmdline_; } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); - saved_cmdline_ = *CommandLine::ForCurrentProcess(); + saved_cmdline_ = *base::CommandLine::ForCurrentProcess(); command_line->AppendSwitch(switches::kEnableExtensionActivityLogging); } @@ -43,7 +43,7 @@ class ActivityLogApiTest : public ExtensionApiTest { } private: - CommandLine saved_cmdline_; + base::CommandLine saved_cmdline_; }; #if defined(OS_WIN) && !defined(NDEBUG) diff --git a/chrome/browser/extensions/api/braille_display_private/braille_display_private_apitest.cc b/chrome/browser/extensions/api/braille_display_private/braille_display_private_apitest.cc index e13e2bb31..eba236a 100644 --- a/chrome/browser/extensions/api/braille_display_private/braille_display_private_apitest.cc +++ b/chrome/browser/extensions/api/braille_display_private/braille_display_private_apitest.cc @@ -268,7 +268,7 @@ IN_PROC_BROWSER_TEST_F(BrailleDisplayPrivateApiTest, DisplayStateChanges) { class BrailleDisplayPrivateAPIUserTest : public BrailleDisplayPrivateApiTest { public: - virtual void SetUpCommandLine(CommandLine* command_line) override { + virtual void SetUpCommandLine(base::CommandLine* command_line) override { command_line->AppendSwitch(chromeos::switches::kLoginManager); command_line->AppendSwitchASCII(chromeos::switches::kLoginProfile, TestingProfile::kTestUserProfileDir); diff --git a/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc b/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc index 21d8828..b8c5356 100644 --- a/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc +++ b/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc @@ -37,7 +37,7 @@ namespace extensions { class CastStreamingApiTest : public ExtensionApiTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, @@ -321,7 +321,7 @@ class CastStreamingApiTestWithPixelOutput : public CastStreamingApiTest { CastStreamingApiTest::SetUp(); } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { command_line->AppendSwitchASCII(::switches::kWindowSize, "128,128"); CastStreamingApiTest::SetUpCommandLine(command_line); } diff --git a/chrome/browser/extensions/api/cast_streaming/performance_test.cc b/chrome/browser/extensions/api/cast_streaming/performance_test.cc index 2be63ec..9f57dcb 100644 --- a/chrome/browser/extensions/api/cast_streaming/performance_test.cc +++ b/chrome/browser/extensions/api/cast_streaming/performance_test.cc @@ -292,7 +292,7 @@ class CastV2PerformanceTest } bool IsGpuAvailable() const { - return CommandLine::ForCurrentProcess()->HasSwitch("enable-gpu"); + return base::CommandLine::ForCurrentProcess()->HasSwitch("enable-gpu"); } std::string GetSuffixForTestFlags() { @@ -354,7 +354,7 @@ class CastV2PerformanceTest ExtensionApiTest::SetUp(); } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { // Some of the tests may launch http requests through JSON or AJAX // which causes a security error (cross domain request) when the page // is loaded from the local file system ( file:// ). The following switch diff --git a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc index 19a8041..5b42854 100644 --- a/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc +++ b/chrome/browser/extensions/api/cloud_print_private/cloud_print_private_apitest.cc @@ -22,7 +22,7 @@ using ::testing::_; // A base class for tests below. class ExtensionCloudPrintPrivateApiTest : public ExtensionApiTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( switches::kCloudPrintURL, diff --git a/chrome/browser/extensions/api/command_line_private/command_line_private_api.cc b/chrome/browser/extensions/api/command_line_private/command_line_private_api.cc index 52586c5d..37bef4e 100644 --- a/chrome/browser/extensions/api/command_line_private/command_line_private_api.cc +++ b/chrome/browser/extensions/api/command_line_private/command_line_private_api.cc @@ -32,7 +32,7 @@ bool CommandLinePrivateHasSwitchFunction::RunSync() { } results_ = command_line_private::HasSwitch::Results::Create( - CommandLine::ForCurrentProcess()->HasSwitch(params->name)); + base::CommandLine::ForCurrentProcess()->HasSwitch(params->name)); return true; } diff --git a/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc b/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc index bb4e217..9bc60511 100644 --- a/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc +++ b/chrome/browser/extensions/api/content_settings/content_settings_apitest.cc @@ -34,7 +34,7 @@ class ExtensionContentSettingsApiTest : public ExtensionApiTest { public: ExtensionContentSettingsApiTest() : profile_(NULL) {} - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kDisablePluginsDiscovery); } diff --git a/chrome/browser/extensions/api/debugger/debugger_api.cc b/chrome/browser/extensions/api/debugger/debugger_api.cc index 811d5dd..f927fcb 100644 --- a/chrome/browser/extensions/api/debugger/debugger_api.cc +++ b/chrome/browser/extensions/api/debugger/debugger_api.cc @@ -586,8 +586,8 @@ bool DebuggerAttachFunction::RunAsync() { } infobars::InfoBar* infobar = NULL; - if (!CommandLine::ForCurrentProcess()-> - HasSwitch(::switches::kSilentDebuggerExtensionAPI)) { + if (!base::CommandLine::ForCurrentProcess()->HasSwitch( + ::switches::kSilentDebuggerExtensionAPI)) { // Do not attach to the target if for any reason the infobar cannot be shown // for this WebContents instance. infobar = ExtensionDevToolsInfoBarDelegate::Create( diff --git a/chrome/browser/extensions/api/debugger/debugger_extension_apitest.cc b/chrome/browser/extensions/api/debugger/debugger_extension_apitest.cc index fca215b..a8a3ef8 100644 --- a/chrome/browser/extensions/api/debugger/debugger_extension_apitest.cc +++ b/chrome/browser/extensions/api/debugger/debugger_extension_apitest.cc @@ -9,7 +9,7 @@ class ExtensionApiTestWithSwitch : public ExtensionApiTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kSilentDebuggerExtensionAPI); command_line->AppendSwitch(extensions::switches::kExtensionsOnChromeURLs); diff --git a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc index 3ddab86..f1751ff 100644 --- a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc +++ b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc @@ -106,7 +106,7 @@ bool DesktopCaptureChooseDesktopMediaFunction::RunAsync() { return false; } - if (!CommandLine::ForCurrentProcess()->HasSwitch( + if (!base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kAllowHttpScreenCapture) && !origin_.SchemeIsSecure()) { error_ = kTabUrlNotSecure; diff --git a/chrome/browser/extensions/api/dial/dial_apitest.cc b/chrome/browser/extensions/api/dial/dial_apitest.cc index 3dceb944..c4f20f1 100644 --- a/chrome/browser/extensions/api/dial/dial_apitest.cc +++ b/chrome/browser/extensions/api/dial/dial_apitest.cc @@ -25,7 +25,7 @@ class DialAPITest : public ExtensionApiTest { public: DialAPITest() {} - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, diff --git a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc index 82b5e9f..0c09805 100644 --- a/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc +++ b/chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc @@ -3858,7 +3858,7 @@ IN_PROC_BROWSER_TEST_F( IN_PROC_BROWSER_TEST_F( DownloadExtensionTest, MAYBE_DownloadExtensionTest_OnDeterminingFilename_InterruptedResume) { - CommandLine::ForCurrentProcess()->AppendSwitch( + base::CommandLine::ForCurrentProcess()->AppendSwitch( switches::kEnableDownloadResumption); LoadExtension("downloads_split"); ASSERT_TRUE(StartEmbeddedTestServer()); diff --git a/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc b/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc index bb47bd6..b5975a3 100644 --- a/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc +++ b/chrome/browser/extensions/api/enterprise_platform_keys/enterprise_platform_keys_apitest_nss.cc @@ -168,7 +168,7 @@ class EnterprisePlatformKeysTest public: EnterprisePlatformKeysTest() {} - virtual void SetUpCommandLine(CommandLine* command_line) override { + virtual void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); // Enable the WebCrypto API. diff --git a/chrome/browser/extensions/api/feedback_private/feedback_browsertest.cc b/chrome/browser/extensions/api/feedback_private/feedback_browsertest.cc index 9f7e301..b166f4c 100644 --- a/chrome/browser/extensions/api/feedback_private/feedback_browsertest.cc +++ b/chrome/browser/extensions/api/feedback_private/feedback_browsertest.cc @@ -36,7 +36,7 @@ class FeedbackTest : public ExtensionBrowserTest { InProcessBrowserTest::SetUp(); } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { command_line->AppendSwitch(::switches::kEnableUserMediaScreenCapturing); InProcessBrowserTest::SetUpCommandLine(command_line); } diff --git a/chrome/browser/extensions/api/file_system/file_system_apitest.cc b/chrome/browser/extensions/api/file_system/file_system_apitest.cc index 9b60f91..a9cadbc 100644 --- a/chrome/browser/extensions/api/file_system/file_system_apitest.cc +++ b/chrome/browser/extensions/api/file_system/file_system_apitest.cc @@ -64,7 +64,7 @@ const int kGraylistedPath = base::DIR_HOME; class FileSystemApiTest : public PlatformAppBrowserTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { PlatformAppBrowserTest::SetUpCommandLine(command_line); test_root_folder_ = test_data_dir_.AppendASCII("api_test") .AppendASCII("file_system"); diff --git a/chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc b/chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc index 9f99360..3eee978 100644 --- a/chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc +++ b/chrome/browser/extensions/api/gcd_private/gcd_private_apitest.cc @@ -228,7 +228,7 @@ class GcdPrivateAPITest : public ExtensionApiTest { #endif // ENABLE_MDNS } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, diff --git a/chrome/browser/extensions/api/gcm/gcm_apitest.cc b/chrome/browser/extensions/api/gcm/gcm_apitest.cc index fdd057b..d72b7f2 100644 --- a/chrome/browser/extensions/api/gcm/gcm_apitest.cc +++ b/chrome/browser/extensions/api/gcm/gcm_apitest.cc @@ -61,7 +61,7 @@ class GcmApiTest : public ExtensionApiTest { GcmApiTest() : fake_gcm_profile_service_(NULL) {} protected: - void SetUpCommandLine(CommandLine* command_line) override; + void SetUpCommandLine(base::CommandLine* command_line) override; void SetUpOnMainThread() override; void StartCollecting(); @@ -74,7 +74,7 @@ class GcmApiTest : public ExtensionApiTest { gcm::FakeGCMProfileService* fake_gcm_profile_service_; }; -void GcmApiTest::SetUpCommandLine(CommandLine* command_line) { +void GcmApiTest::SetUpCommandLine(base::CommandLine* command_line) { // We now always create the GCMProfileService instance in // ProfileSyncServiceFactory that is called when a profile is being // initialized. In order to prevent it from being created, we add the switch diff --git a/chrome/browser/extensions/api/history/history_api.cc b/chrome/browser/extensions/api/history/history_api.cc index 196ecaa..7e2ca23 100644 --- a/chrome/browser/extensions/api/history/history_api.cc +++ b/chrome/browser/extensions/api/history/history_api.cc @@ -398,7 +398,7 @@ bool HistoryDeleteUrlFunction::RunAsync() { // Also clean out from the activity log. If the activity log testing flag is // set then don't clean so testers can see what potentially malicious // extensions have been trying to clean from their logs. - if (!CommandLine::ForCurrentProcess()->HasSwitch( + if (!base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kEnableExtensionActivityLogTesting)) { ActivityLog* activity_log = ActivityLog::GetInstance(GetProfile()); DCHECK(activity_log); @@ -431,7 +431,7 @@ bool HistoryDeleteRangeFunction::RunAsyncImpl() { &task_tracker_); // Also clean from the activity log unless in testing mode. - if (!CommandLine::ForCurrentProcess()->HasSwitch( + if (!base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kEnableExtensionActivityLogTesting)) { ActivityLog* activity_log = ActivityLog::GetInstance(GetProfile()); DCHECK(activity_log); @@ -461,7 +461,7 @@ bool HistoryDeleteAllFunction::RunAsyncImpl() { &task_tracker_); // Also clean from the activity log unless in testing mode. - if (!CommandLine::ForCurrentProcess()->HasSwitch( + if (!base::CommandLine::ForCurrentProcess()->HasSwitch( switches::kEnableExtensionActivityLogTesting)) { ActivityLog* activity_log = ActivityLog::GetInstance(GetProfile()); DCHECK(activity_log); diff --git a/chrome/browser/extensions/api/identity/identity_apitest.cc b/chrome/browser/extensions/api/identity/identity_apitest.cc index a2881ef..2ef6278 100644 --- a/chrome/browser/extensions/api/identity/identity_apitest.cc +++ b/chrome/browser/extensions/api/identity/identity_apitest.cc @@ -401,7 +401,7 @@ gaia::AccountIds CreateIds(std::string email, std::string obfid) { } class IdentityGetAccountsFunctionTest : public ExtensionBrowserTest { - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionBrowserTest::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kExtensionsMultiAccount); } @@ -513,7 +513,7 @@ IN_PROC_BROWSER_TEST_F(IdentityGetAccountsFunctionTest, TwoAccountsSignedIn) { class IdentityOldProfilesGetAccountsFunctionTest : public IdentityGetAccountsFunctionTest { - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { // Don't add the multi-account switch that parent class would have. } }; @@ -657,7 +657,7 @@ IN_PROC_BROWSER_TEST_F(IdentityGetProfileUserInfoFunctionTest, class GetAuthTokenFunctionTest : public IdentityTestWithSignin { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { IdentityTestWithSignin::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kExtensionsMultiAccount); } @@ -861,7 +861,8 @@ IN_PROC_BROWSER_TEST_F(GetAuthTokenFunctionTest, SignIn("primary@example.com"); #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif @@ -885,7 +886,8 @@ IN_PROC_BROWSER_TEST_F(GetAuthTokenFunctionTest, SignIn("primary@example.com"); #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif @@ -1662,7 +1664,7 @@ IN_PROC_BROWSER_TEST_F(RemoveCachedAuthTokenFunctionTest, MatchingToken) { class LaunchWebAuthFlowFunctionTest : public AsyncExtensionBrowserTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { AsyncExtensionBrowserTest::SetUpCommandLine(command_line); // Reduce performance test variance by disabling background networking. command_line->AppendSwitch(switches::kDisableBackgroundNetworking); @@ -1742,7 +1744,8 @@ IN_PROC_BROWSER_TEST_F(LaunchWebAuthFlowFunctionTest, LoadFailed) { IN_PROC_BROWSER_TEST_F(LaunchWebAuthFlowFunctionTest, NonInteractiveSuccess) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif @@ -1768,7 +1771,8 @@ IN_PROC_BROWSER_TEST_F( LaunchWebAuthFlowFunctionTest, InteractiveFirstNavigationSuccess) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif diff --git a/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc b/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc index dc508a8..0b6670e 100644 --- a/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc +++ b/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc @@ -93,7 +93,7 @@ void CollectLogInfo( // Returns directory location of app-specific logs that are initiated with // logPrivate.startEventRecorder() calls - /home/chronos/user/log/apps base::FilePath GetAppLogDirectory() { - return logging::GetSessionLogDir(*CommandLine::ForCurrentProcess()) + return logging::GetSessionLogDir(*base::CommandLine::ForCurrentProcess()) .Append(kAppLogsSubdir); } diff --git a/chrome/browser/extensions/api/management/management_apitest.cc b/chrome/browser/extensions/api/management/management_apitest.cc index 7820666..9b0f132 100644 --- a/chrome/browser/extensions/api/management/management_apitest.cc +++ b/chrome/browser/extensions/api/management/management_apitest.cc @@ -43,7 +43,7 @@ Browser* FindOtherBrowser(Browser* browser) { class ExtensionManagementApiTest : public ExtensionApiTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kEnablePanels); } diff --git a/chrome/browser/extensions/api/mdns/mdns_apitest.cc b/chrome/browser/extensions/api/mdns/mdns_apitest.cc index 00d3d8d..5365518 100644 --- a/chrome/browser/extensions/api/mdns/mdns_apitest.cc +++ b/chrome/browser/extensions/api/mdns/mdns_apitest.cc @@ -42,7 +42,7 @@ class MDnsAPITest : public ExtensionApiTest { public: MDnsAPITest() {} - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc index 8a00c01..1cffad6 100644 --- a/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc +++ b/chrome/browser/extensions/api/media_galleries/media_galleries_apitest.cc @@ -441,7 +441,7 @@ class MediaGalleriesPlatformAppBrowserTest : public PlatformAppBrowserTest { class MediaGalleriesPlatformAppPpapiTest : public MediaGalleriesPlatformAppBrowserTest { protected: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { MediaGalleriesPlatformAppBrowserTest::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kEnablePepperTesting); } @@ -476,7 +476,7 @@ IN_PROC_BROWSER_TEST_F(MediaGalleriesPlatformAppPpapiTest, SendFilesystem) { AppLaunchParams params(browser()->profile(), extension, extensions::LAUNCH_CONTAINER_NONE, NEW_WINDOW, extensions::SOURCE_TEST); - params.command_line = *CommandLine::ForCurrentProcess(); + params.command_line = *base::CommandLine::ForCurrentProcess(); OpenApplication(params); bool result = true; diff --git a/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc b/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc index 6eede09..1f8e767 100644 --- a/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc +++ b/chrome/browser/extensions/api/media_galleries/media_galleries_watch_apitest.cc @@ -81,7 +81,7 @@ class MediaGalleriesGalleryWatchApiTest : public ExtensionApiTest { protected: // ExtensionApiTest overrides. - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, kTestExtensionId); diff --git a/chrome/browser/extensions/api/media_galleries_private/media_galleries_watch_apitest.cc b/chrome/browser/extensions/api/media_galleries_private/media_galleries_watch_apitest.cc index 95340cf..77d6efb 100644 --- a/chrome/browser/extensions/api/media_galleries_private/media_galleries_watch_apitest.cc +++ b/chrome/browser/extensions/api/media_galleries_private/media_galleries_watch_apitest.cc @@ -77,7 +77,7 @@ class MediaGalleriesPrivateGalleryWatchApiTest : public ExtensionApiTest { protected: // ExtensionApiTest overrides. - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher.cc b/chrome/browser/extensions/api/messaging/native_process_launcher.cc index 14c01fb..5fd487d 100644 --- a/chrome/browser/extensions/api/messaging/native_process_launcher.cc +++ b/chrome/browser/extensions/api/messaging/native_process_launcher.cc @@ -182,7 +182,7 @@ void NativeProcessLauncherImpl::Core::DoLaunchOnThreadPool( return; } - CommandLine command_line(host_path); + base::CommandLine command_line(host_path); command_line.AppendArg(origin.spec()); // Pass handle of the native view window to the native messaging host. This diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc index bd2b316..073b274 100644 --- a/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc +++ b/chrome/browser/extensions/api/messaging/native_process_launcher_posix.cc @@ -49,7 +49,7 @@ base::FilePath NativeProcessLauncher::FindManifest( // static bool NativeProcessLauncher::LaunchNativeProcess( - const CommandLine& command_line, + const base::CommandLine& command_line, base::Process* process, base::File* read_file, base::File* write_file) { diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc index d0ae6ed..0514e78 100644 --- a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc +++ b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc @@ -88,7 +88,7 @@ base::FilePath NativeProcessLauncher::FindManifest( // static bool NativeProcessLauncher::LaunchNativeProcess( - const CommandLine& command_line, + const base::CommandLine& command_line, base::Process* process, base::File* read_file, base::File* write_file) { diff --git a/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc b/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc index 8b50bd7..269931e 100644 --- a/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc +++ b/chrome/browser/extensions/api/networking_private/networking_private_apitest.cc @@ -249,7 +249,7 @@ class NetworkingPrivateApiTest : public ExtensionApiTest { return s_test_delegate_; } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); // Whitelist the extension ID of the test extension. command_line->AppendSwitchASCII( diff --git a/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc b/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc index a2b706e..3ec65f4 100644 --- a/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc +++ b/chrome/browser/extensions/api/networking_private/networking_private_chromeos_apitest.cc @@ -123,7 +123,7 @@ class NetworkingPrivateChromeOSApiTest : public ExtensionApiTest { *out = result; } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); // Whitelist the extension ID of the test extension. command_line->AppendSwitchASCII( diff --git a/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc b/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc index eebc2d3..c2e0d02 100644 --- a/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc +++ b/chrome/browser/extensions/api/networking_private/networking_private_service_client_apitest.cc @@ -74,7 +74,7 @@ class NetworkingPrivateServiceClientApiTest : public ExtensionApiTest { kFlagEnableFileAccess | kFlagLoadAsComponent); } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); // Whitelist the extension ID of the test extension. command_line->AppendSwitchASCII( diff --git a/chrome/browser/extensions/api/page_capture/page_capture_apitest.cc b/chrome/browser/extensions/api/page_capture/page_capture_apitest.cc index 73b0302..295c303 100644 --- a/chrome/browser/extensions/api/page_capture/page_capture_apitest.cc +++ b/chrome/browser/extensions/api/page_capture/page_capture_apitest.cc @@ -14,7 +14,7 @@ using extensions::PageCaptureSaveAsMHTMLFunction; class ExtensionPageCaptureApiTest : public ExtensionApiTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII(switches::kJavaScriptFlags, "--expose-gc"); } diff --git a/chrome/browser/extensions/api/permissions/permissions_apitest.cc b/chrome/browser/extensions/api/permissions/permissions_apitest.cc index 7b6a35b..9b98072 100644 --- a/chrome/browser/extensions/api/permissions/permissions_apitest.cc +++ b/chrome/browser/extensions/api/permissions/permissions_apitest.cc @@ -27,7 +27,7 @@ static void AddPattern(URLPatternSet* extent, const std::string& pattern) { class ExperimentalApiTest : public ExtensionApiTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis); } diff --git a/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc b/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc index 0c82f6e..f705296 100644 --- a/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc +++ b/chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc @@ -111,7 +111,7 @@ class PreferencesPrivateApiTest : public ExtensionApiTest { PreferencesPrivateApiTest() : browser_(NULL), service_(NULL) {} ~PreferencesPrivateApiTest() override {} - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { #if defined(OS_CHROMEOS) command_line->AppendSwitch( chromeos::switches::kIgnoreUserProfileMappingForTests); diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc b/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc index 26551fc..774066c 100644 --- a/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc +++ b/chrome/browser/extensions/api/push_messaging/push_messaging_apitest.cc @@ -73,7 +73,7 @@ class PushMessagingApiTest : public ExtensionApiTest { : fake_invalidation_service_(NULL) { } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); } diff --git a/chrome/browser/extensions/api/push_messaging/push_messaging_canary_test.cc b/chrome/browser/extensions/api/push_messaging/push_messaging_canary_test.cc index af48842..97698f6 100644 --- a/chrome/browser/extensions/api/push_messaging/push_messaging_canary_test.cc +++ b/chrome/browser/extensions/api/push_messaging/push_messaging_canary_test.cc @@ -39,7 +39,7 @@ class PushMessagingCanaryTest : public ExtensionApiTest { ~PushMessagingCanaryTest() override {} void SetUp() override { - CommandLine* command_line = CommandLine::ForCurrentProcess(); + base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); ASSERT_TRUE(command_line->HasSwitch(kPasswordFileForTest)); base::FilePath password_file = diff --git a/chrome/browser/extensions/api/screenlock_private/screenlock_private_apitest.cc b/chrome/browser/extensions/api/screenlock_private/screenlock_private_apitest.cc index f5d39d28..9c1b39c 100644 --- a/chrome/browser/extensions/api/screenlock_private/screenlock_private_apitest.cc +++ b/chrome/browser/extensions/api/screenlock_private/screenlock_private_apitest.cc @@ -36,7 +36,7 @@ class ScreenlockPrivateApiTest : public ExtensionApiTest, ~ScreenlockPrivateApiTest() override {} // ExtensionApiTest - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, kTestExtensionId); diff --git a/chrome/browser/extensions/api/sessions/sessions_apitest.cc b/chrome/browser/extensions/api/sessions/sessions_apitest.cc index cccb653..deec064 100644 --- a/chrome/browser/extensions/api/sessions/sessions_apitest.cc +++ b/chrome/browser/extensions/api/sessions/sessions_apitest.cc @@ -85,7 +85,7 @@ void BuildTabSpecifics(const std::string& tag, class ExtensionSessionsTest : public InProcessBrowserTest { public: - void SetUpCommandLine(CommandLine* command_line) override; + void SetUpCommandLine(base::CommandLine* command_line) override; void SetUpOnMainThread() override; protected: @@ -108,7 +108,7 @@ class ExtensionSessionsTest : public InProcessBrowserTest { scoped_refptr<Extension> extension_; }; -void ExtensionSessionsTest::SetUpCommandLine(CommandLine* command_line) { +void ExtensionSessionsTest::SetUpCommandLine(base::CommandLine* command_line) { #if defined(OS_CHROMEOS) command_line->AppendSwitch( chromeos::switches::kIgnoreUserProfileMappingForTests); @@ -384,7 +384,8 @@ IN_PROC_BROWSER_TEST_F(ExtensionSessionsTest, GetRecentlyClosedIncognito) { IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_SessionsApis) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif diff --git a/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc b/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc index cfa85fd..c086f7b 100644 --- a/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc +++ b/chrome/browser/extensions/api/streams_private/streams_private_apitest.cc @@ -244,7 +244,8 @@ class StreamsPrivateApiTest : public ExtensionApiTest { IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, Navigate) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif @@ -274,7 +275,8 @@ IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, Navigate) { IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, FileURL) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif @@ -304,7 +306,8 @@ IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, FileURL) { IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, NavigateCrossSite) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif @@ -434,7 +437,8 @@ IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, DirectDownload) { IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, Headers) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif @@ -463,7 +467,8 @@ IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, Headers) { IN_PROC_BROWSER_TEST_F(StreamsPrivateApiTest, Abort) { #if defined(OS_WIN) && defined(USE_ASH) // Disable this test in Metro+Ash for now (http://crbug.com/262796). - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kAshBrowserTests)) + if (base::CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAshBrowserTests)) return; #endif diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc index 4c2e996..1f24b9a 100644 --- a/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc +++ b/chrome/browser/extensions/api/tab_capture/tab_capture_api.cc @@ -89,7 +89,7 @@ bool TabCaptureCaptureFunction::RunSync() { if (!extension()->permissions_data()->HasAPIPermissionForTab( SessionTabHelper::IdForTab(target_contents), APIPermission::kTabCaptureForTab) && - CommandLine::ForCurrentProcess()->GetSwitchValueASCII( + base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( switches::kWhitelistedExtensionID) != extension_id && !SimpleFeature::IsIdInList( extension_id, diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc index 118b340..7908329 100644 --- a/chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc +++ b/chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc @@ -36,7 +36,7 @@ const char kExtensionId[] = "ddchlicdkolnonkihahngkmmmjnjlkkf"; class TabCaptureApiTest : public ExtensionApiTest { public: - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); // Specify smallish window size to make testing of tab capture less CPU // intensive. @@ -44,7 +44,7 @@ class TabCaptureApiTest : public ExtensionApiTest { } void AddExtensionToCommandLineWhitelist() { - CommandLine::ForCurrentProcess()->AppendSwitchASCII( + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( switches::kWhitelistedExtensionID, kExtensionId); } @@ -82,7 +82,7 @@ class TabCaptureApiPixelTest : public TabCaptureApiTest { // TODO(miu): Look into enabling these tests for the Debug build bots once // they prove to be stable again on the Release bots. // http://crbug.com/396413 - return !CommandLine::ForCurrentProcess()->HasSwitch( + return !base::CommandLine::ForCurrentProcess()->HasSwitch( "run-tab-capture-api-pixel-tests"); #endif } diff --git a/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc b/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc index e289d79..6213411 100644 --- a/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc +++ b/chrome/browser/extensions/api/tab_capture/tab_capture_performancetest.cc @@ -62,7 +62,7 @@ class TabCapturePerformanceTest } bool IsGpuAvailable() const { - return CommandLine::ForCurrentProcess()->HasSwitch("enable-gpu"); + return base::CommandLine::ForCurrentProcess()->HasSwitch("enable-gpu"); } std::string ScalingMethod() const { @@ -100,7 +100,7 @@ class TabCapturePerformanceTest ExtensionApiTest::SetUp(); } - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { if (!ScalingMethod().empty()) { command_line->AppendSwitchASCII(switches::kTabCaptureUpscaleQuality, ScalingMethod()); diff --git a/chrome/browser/extensions/api/terminal/terminal_private_apitest.cc b/chrome/browser/extensions/api/terminal/terminal_private_apitest.cc index 2039685..c7b7cab 100644 --- a/chrome/browser/extensions/api/terminal/terminal_private_apitest.cc +++ b/chrome/browser/extensions/api/terminal/terminal_private_apitest.cc @@ -7,7 +7,7 @@ #include "extensions/common/switches.h" class ExtensionTerminalPrivateApiTest : public ExtensionApiTest { - virtual void SetUpCommandLine(CommandLine* command_line) override { + virtual void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( extensions::switches::kWhitelistedExtensionID, diff --git a/chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.cc b/chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.cc index 224ca0d..4ef8e00 100644 --- a/chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.cc +++ b/chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_keyboard_delegate.cc @@ -85,7 +85,7 @@ bool ChromeVirtualKeyboardDelegate::LockKeyboard(bool state) { bool ChromeVirtualKeyboardDelegate::MoveCursor(int swipe_direction, int modifier_flags) { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); - if (!CommandLine::ForCurrentProcess()->HasSwitch( + if (!base::CommandLine::ForCurrentProcess()->HasSwitch( keyboard::switches::kEnableSwipeSelection)) { return false; } diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc index 17cbd05..3d691e3 100644 --- a/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc +++ b/chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc @@ -261,7 +261,7 @@ class WebNavigationApiTest : public ExtensionApiTest { FrameNavigationState::set_allow_extension_scheme(true); - CommandLine::ForCurrentProcess()->AppendSwitch( + base::CommandLine::ForCurrentProcess()->AppendSwitch( switches::kAllowLegacyExtensionManifests); host_resolver()->AddRule("*", "127.0.0.1"); diff --git a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc index d429cd1..b96d23e 100644 --- a/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc +++ b/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc @@ -96,7 +96,7 @@ class ExtensionWebstorePrivateApiTest : public ExtensionApiTest { ExtensionWebstorePrivateApiTest() {} ~ExtensionWebstorePrivateApiTest() override {} - void SetUpCommandLine(CommandLine* command_line) override { + void SetUpCommandLine(base::CommandLine* command_line) override { ExtensionApiTest::SetUpCommandLine(command_line); command_line->AppendSwitchASCII( switches::kAppsGalleryURL, @@ -155,7 +155,7 @@ class ExtensionWebstorePrivateApiTest : public ExtensionApiTest { return true; #else GURL crx_url = GetTestServerURL(crx_file); - CommandLine::ForCurrentProcess()->AppendSwitchASCII( + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( switches::kAppsGalleryUpdateURL, crx_url.spec()); GURL page_url = GetTestServerURL(page); @@ -407,7 +407,7 @@ class EphemeralAppWebstorePrivateApiTest "http://www.example.com:%d/files/extensions/platform_apps/" "ephemeral_launcher", host_port.port()); - CommandLine::ForCurrentProcess()->AppendSwitchASCII( + base::CommandLine::ForCurrentProcess()->AppendSwitchASCII( switches::kAppsGalleryURL, test_gallery_url); } @@ -421,16 +421,16 @@ class EphemeralAppWebstorePrivateApiTest // Run tests when the --enable-ephemeral-apps switch is not enabled. IN_PROC_BROWSER_TEST_F(EphemeralAppWebstorePrivateApiTest, EphemeralAppsFeatureDisabled) { - CommandLine::ForCurrentProcess()->AppendSwitch( + base::CommandLine::ForCurrentProcess()->AppendSwitch( app_list::switches::kDisableExperimentalAppList); ASSERT_TRUE(RunInstallTest("webstore_launch_disabled.html", "app.crx")); } // Run tests when the --enable-ephemeral-apps switch is enabled. IN_PROC_BROWSER_TEST_F(EphemeralAppWebstorePrivateApiTest, LaunchEphemeralApp) { - CommandLine::ForCurrentProcess()->AppendSwitch( + base::CommandLine::ForCurrentProcess()->AppendSwitch( switches::kEnableEphemeralAppsInWebstore); - CommandLine::ForCurrentProcess()->AppendSwitch( + base::CommandLine::ForCurrentProcess()->AppendSwitch( app_list::switches::kEnableExperimentalAppList); ASSERT_TRUE(RunInstallTest("webstore_launch_app.html", "app.crx")); } |