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

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

Issue 6537027: Revert 75287 - [Sync] Initial support for encrypting any datatype (no UI hook... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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_session_unittest.cc
===================================================================
--- chrome/browser/sync/profile_sync_service_session_unittest.cc (revision 75295)
+++ chrome/browser/sync/profile_sync_service_session_unittest.cc (working copy)
@@ -56,6 +56,7 @@
ProfileSyncServiceSessionTest()
: window_bounds_(0, 1, 2, 3),
notified_of_update_(false) {}
+
ProfileSyncService* sync_service() { return sync_service_.get(); }
TestIdFactory* ids() { return sync_service_->id_factory(); }
@@ -64,9 +65,7 @@
SessionService* service() { return helper_.service(); }
virtual void SetUp() {
- // BrowserWithTestWindowTest implementation.
BrowserWithTestWindowTest::SetUp();
-
profile()->set_has_history_service(true);
ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
SessionService* session_service = new SessionService(temp_dir_.path());
@@ -99,17 +98,16 @@
bool StartSyncService(Task* task, bool will_fail_association) {
if (sync_service_.get())
return false;
+
sync_service_.reset(new TestProfileSyncService(
&factory_, profile(), "test user", false, task));
profile()->set_session_service(helper_.service());
// Register the session data type.
model_associator_ =
- new SessionModelAssociator(sync_service_.get(),
- true /* setup_for_test */);
+ new SessionModelAssociator(sync_service_.get());
change_processor_ = new SessionChangeProcessor(
- sync_service_.get(), model_associator_,
- true /* setup_for_test */);
+ sync_service_.get(), model_associator_);
EXPECT_CALL(factory_, CreateSessionSyncComponents(_, _)).
WillOnce(Return(ProfileSyncFactory::SyncComponents(
model_associator_, change_processor_)));
« no previous file with comments | « chrome/browser/sync/profile_sync_service_harness.cc ('k') | chrome/browser/sync/protocol/nigori_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698