Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1786)

Unified Diff: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc

Issue 819133004: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc
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 d429cd17f0b60e3ebe655c5db5cb4732fff084a7..b96d23e868b144bfefaf116a0f3f2e8987cc4345 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"));
}

Powered by Google App Engine
This is Rietveld 408576698