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

Unified Diff: chrome/browser/sync/startup_controller_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/sync/startup_controller_unittest.cc
diff --git a/chrome/browser/sync/startup_controller_unittest.cc b/chrome/browser/sync/startup_controller_unittest.cc
index e8c6e1d95cbec421f098fba022ada5e3a3467cb6..186a7590896101074615d91cc9a5b583212285c8 100644
--- a/chrome/browser/sync/startup_controller_unittest.cc
+++ b/chrome/browser/sync/startup_controller_unittest.cc
@@ -113,8 +113,9 @@ TEST_F(StartupControllerTest, Basic) {
controller()->TryStart();
EXPECT_FALSE(started());
token_service()->IssueRefreshTokenForUser(kTestUser, kTestToken);
- const bool deferred_start = !CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kSyncDisableDeferredStartup);
+ const bool deferred_start =
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSyncDisableDeferredStartup);
controller()->TryStart();
EXPECT_EQ(!deferred_start, started());
std::string state(controller()->GetBackendInitializationStateString());
@@ -228,8 +229,9 @@ TEST_F(StartupControllerTest, Reset) {
signin()->set_account(kTestUser);
token_service()->IssueRefreshTokenForUser(kTestUser, kTestToken);
controller()->TryStart();
- const bool deferred_start = !CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kSyncDisableDeferredStartup);
+ const bool deferred_start =
+ !base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kSyncDisableDeferredStartup);
EXPECT_EQ(!deferred_start, started());
controller()->OnDataTypeRequestsSyncStartup(syncer::SESSIONS);
EXPECT_TRUE(started());
« no previous file with comments | « chrome/browser/sync/startup_controller.cc ('k') | chrome/browser/sync/test/integration/single_client_app_list_sync_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698