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

Unified Diff: chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc

Issue 763673002: Replace direct access to kGoogleServicesUsername with calls to SigninManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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/ui/webui/options/sync_setup_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc b/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
index f217fca3e52326a8ba2a752cde80d5d368a6fc51..3bd9856d56d711f9eefea6837454373eaf8a8698 100644
--- a/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
+++ b/chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc
@@ -276,11 +276,8 @@ class SyncSetupHandlerTest : public testing::Test {
mock_signin_ = static_cast<SigninManagerBase*>(
SigninManagerFactory::GetForProfile(profile_.get()));
std::string username = GetTestUser();
- if (!username.empty()) {
+ if (!username.empty())
mock_signin_->SetAuthenticatedUsername(username);
- profile_->GetPrefs()->SetString(prefs::kGoogleServicesUsername,
- username);
- }
mock_pss_ = static_cast<ProfileSyncServiceMock*>(
ProfileSyncServiceFactory::GetInstance()->SetTestingFactoryAndUse(

Powered by Google App Engine
This is Rietveld 408576698