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

Unified Diff: chrome/browser/extensions/crx_installer_browsertest.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/crx_installer_browsertest.cc
diff --git a/chrome/browser/extensions/crx_installer_browsertest.cc b/chrome/browser/extensions/crx_installer_browsertest.cc
index 759e2ca014703c9e2829ee3953de2c59614cab30..7fc0707a2be8e9f145fac8b3b18e082b9592dbb9 100644
--- a/chrome/browser/extensions/crx_installer_browsertest.cc
+++ b/chrome/browser/extensions/crx_installer_browsertest.cc
@@ -166,17 +166,18 @@ class ManagementPolicyMock : public extensions::ManagementPolicy::Provider {
// lifetime of this class.
class ScopedExperimentalCommandLine {
public:
- ScopedExperimentalCommandLine() : saved_(*CommandLine::ForCurrentProcess()) {
- CommandLine::ForCurrentProcess()->AppendSwitch(
+ ScopedExperimentalCommandLine()
+ : saved_(*base::CommandLine::ForCurrentProcess()) {
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableExperimentalExtensionApis);
}
~ScopedExperimentalCommandLine() {
- *CommandLine::ForCurrentProcess() = saved_;
+ *base::CommandLine::ForCurrentProcess() = saved_;
}
private:
- CommandLine saved_;
+ base::CommandLine saved_;
};
} // namespace
@@ -555,7 +556,7 @@ IN_PROC_BROWSER_TEST_F(ExtensionCrxInstallerTest, KioskOnlyTest) {
#if defined(OS_CHROMEOS)
IN_PROC_BROWSER_TEST_F(ExtensionCrxInstallerTest, InstallToSharedLocation) {
base::ShadowingAtExitManager at_exit_manager;
- CommandLine::ForCurrentProcess()->AppendSwitch(
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
chromeos::switches::kEnableExtensionAssetsSharing);
base::ScopedTempDir cache_dir;
ASSERT_TRUE(cache_dir.CreateUniqueTempDir());

Powered by Google App Engine
This is Rietveld 408576698