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

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

Issue 3305003: New authorization framework for sync. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 months 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/profile_sync_service_preference_unittest.cc
===================================================================
--- chrome/browser/sync/profile_sync_service_preference_unittest.cc (revision 58702)
+++ chrome/browser/sync/profile_sync_service_preference_unittest.cc (working copy)
@@ -19,6 +19,7 @@
#include "chrome/browser/sync/protocol/preference_specifics.pb.h"
#include "chrome/browser/sync/syncable/model_type.h"
#include "chrome/browser/sync/test_profile_sync_service.h"
+#include "chrome/common/net/gaia/gaia_constants.h"
#include "chrome/common/json_value_serializer.h"
#include "chrome/common/pref_names.h"
#include "chrome/test/testing_pref_service.h"
@@ -68,7 +69,7 @@
return false;
service_.reset(new TestProfileSyncService(
- &factory_, profile_.get(), false, false, task));
+ &factory_, profile_.get(), "test", false, task));
// Register the preference data type.
model_associator_ =
@@ -87,6 +88,8 @@
service_->RegisterDataTypeController(
new PreferenceDataTypeController(&factory_,
service_.get()));
+ profile_->GetTokenService()->IssueAuthTokenForTest(
+ GaiaConstants::kSyncService, "token");
service_->Initialize();
MessageLoop::current()->Run();
return true;

Powered by Google App Engine
This is Rietveld 408576698