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

Unified Diff: chrome/browser/extensions/activity_log/activity_log_enabled_unittest.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/activity_log/activity_log_enabled_unittest.cc
diff --git a/chrome/browser/extensions/activity_log/activity_log_enabled_unittest.cc b/chrome/browser/extensions/activity_log/activity_log_enabled_unittest.cc
index ebdca47e900c8f1356dd21a298e9be942126ca99..8c77afdcc84ab2feecac65fa914bba1966bb7948 100644
--- a/chrome/browser/extensions/activity_log/activity_log_enabled_unittest.cc
+++ b/chrome/browser/extensions/activity_log/activity_log_enabled_unittest.cc
@@ -69,12 +69,12 @@ TEST_F(ActivityLogEnabledTest, CommandLineSwitch) {
scoped_ptr<TestingProfile> profile2(
static_cast<TestingProfile*>(CreateBrowserContext()));
- CommandLine command_line(CommandLine::NO_PROGRAM);
- CommandLine saved_cmdline_ = *CommandLine::ForCurrentProcess();
- CommandLine::ForCurrentProcess()->AppendSwitch(
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
+ base::CommandLine saved_cmdline_ = *base::CommandLine::ForCurrentProcess();
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableExtensionActivityLogging);
ActivityLog* activity_log1 = ActivityLog::GetInstance(profile1.get());
- *CommandLine::ForCurrentProcess() = saved_cmdline_;
+ *base::CommandLine::ForCurrentProcess() = saved_cmdline_;
ActivityLog* activity_log2 = ActivityLog::GetInstance(profile2.get());
EXPECT_EQ(0,
@@ -123,7 +123,7 @@ TEST_F(ActivityLogEnabledTest, PrefSwitch) {
}
TEST_F(ActivityLogEnabledTest, WatchdogSwitch) {
- CommandLine command_line(CommandLine::NO_PROGRAM);
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
scoped_ptr<TestingProfile> profile1(
static_cast<TestingProfile*>(CreateBrowserContext()));
scoped_ptr<TestingProfile> profile2(
@@ -228,9 +228,9 @@ TEST_F(ActivityLogEnabledTest, WatchdogSwitch) {
TEST_F(ActivityLogEnabledTest, AppAndCommandLine) {
// Set the command line switch.
- CommandLine command_line(CommandLine::NO_PROGRAM);
- CommandLine saved_cmdline_ = *CommandLine::ForCurrentProcess();
- CommandLine::ForCurrentProcess()->AppendSwitch(
+ base::CommandLine command_line(base::CommandLine::NO_PROGRAM);
+ base::CommandLine saved_cmdline_ = *base::CommandLine::ForCurrentProcess();
+ base::CommandLine::ForCurrentProcess()->AppendSwitch(
switches::kEnableExtensionActivityLogging);
scoped_ptr<TestingProfile> profile(
@@ -280,7 +280,7 @@ TEST_F(ActivityLogEnabledTest, AppAndCommandLine) {
EXPECT_FALSE(activity_log->IsWatchdogAppActive());
// Cleanup.
- *CommandLine::ForCurrentProcess() = saved_cmdline_;
+ *base::CommandLine::ForCurrentProcess() = saved_cmdline_;
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698