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

Unified Diff: chrome/browser/profiles/profile_manager_unittest.cc

Issue 816403003: 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/profiles/profile_manager_unittest.cc
diff --git a/chrome/browser/profiles/profile_manager_unittest.cc b/chrome/browser/profiles/profile_manager_unittest.cc
index e3f02ad2c508678728dbc2a986ba4d1e664f1bdd..c3ffe9e19df34f7500ef2636eb9d7708136a7daf 100644
--- a/chrome/browser/profiles/profile_manager_unittest.cc
+++ b/chrome/browser/profiles/profile_manager_unittest.cc
@@ -110,7 +110,7 @@ class ProfileManagerTest : public testing::Test {
new UnittestProfileManager(temp_dir_.path()));
#if defined(OS_CHROMEOS)
- CommandLine* cl = CommandLine::ForCurrentProcess();
+ base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
cl->AppendSwitch(switches::kTestType);
#endif
}
@@ -408,7 +408,7 @@ class ProfileManagerGuestTest : public ProfileManagerTest {
new UnittestGuestProfileManager(temp_dir_.path()));
#if defined(OS_CHROMEOS)
- CommandLine* cl = CommandLine::ForCurrentProcess();
+ base::CommandLine* cl = base::CommandLine::ForCurrentProcess();
// This switch is needed to skip non-test specific behavior in
// ProfileManager (accessing DBusThreadManager).
cl->AppendSwitch(switches::kTestType);
@@ -994,7 +994,8 @@ TEST_F(ProfileManagerTest, ProfileDisplayNameResetsDefaultName) {
return;
// The command line is reset at the end of every test by the test suite.
- switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess());
+ switches::EnableNewAvatarMenuForTesting(
+ base::CommandLine::ForCurrentProcess());
ProfileManager* profile_manager = g_browser_process->profile_manager();
ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
@@ -1032,7 +1033,8 @@ TEST_F(ProfileManagerTest, ProfileDisplayNamePreservesCustomName) {
return;
// The command line is reset at the end of every test by the test suite.
- switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess());
+ switches::EnableNewAvatarMenuForTesting(
+ base::CommandLine::ForCurrentProcess());
ProfileManager* profile_manager = g_browser_process->profile_manager();
ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
@@ -1078,7 +1080,8 @@ TEST_F(ProfileManagerTest, ProfileDisplayNamePreservesSignedInName) {
return;
// The command line is reset at the end of every test by the test suite.
- switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess());
+ switches::EnableNewAvatarMenuForTesting(
+ base::CommandLine::ForCurrentProcess());
ProfileManager* profile_manager = g_browser_process->profile_manager();
ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
@@ -1132,7 +1135,8 @@ TEST_F(ProfileManagerTest, ProfileDisplayNameIsEmailIfDefaultName) {
return;
// The command line is reset at the end of every test by the test suite.
- switches::EnableNewAvatarMenuForTesting(CommandLine::ForCurrentProcess());
+ switches::EnableNewAvatarMenuForTesting(
+ base::CommandLine::ForCurrentProcess());
ProfileManager* profile_manager = g_browser_process->profile_manager();
ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
« no previous file with comments | « chrome/browser/profiles/profile_manager_browsertest.cc ('k') | chrome/browser/profiles/profile_shortcut_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698