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

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: first Created 9 years, 1 month 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 147b60e768d3e391744fc316c0e112dee940a5fb..286b0ec63e754be6005489289da90aadf7b145d7 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