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

Unified Diff: chrome/browser/sync/test_profile_sync_service.cc

Issue 8698001: sync: change semantics (and name) of SigninManager::GetUsername (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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/test_profile_sync_service.cc
diff --git a/chrome/browser/sync/test_profile_sync_service.cc b/chrome/browser/sync/test_profile_sync_service.cc
index 3f06f605d3ce67728927fff67b7b0c8e93bfe513..9a698b0f8f521a8f4799ceaffc4818e4799d4609 100644
--- a/chrome/browser/sync/test_profile_sync_service.cc
+++ b/chrome/browser/sync/test_profile_sync_service.cc
@@ -38,7 +38,7 @@ class FakeSigninManager : public SigninManager {
const std::string& password,
const std::string& login_token,
const std::string& login_captcha) OVERRIDE {
- SetUsername(username);
+ SetAuthenticatedUsername(username);
}
};
@@ -148,6 +148,7 @@ TestProfileSyncService::TestProfileSyncService(
set_initial_sync_ended_on_init_(true),
fail_initial_download_(false) {
SetSyncSetupCompleted();
+ signin_->SetAuthenticatedUsername(test_user);
}
TestProfileSyncService::~TestProfileSyncService() {}

Powered by Google App Engine
This is Rietveld 408576698