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

Side by Side Diff: chrome/browser/sync/test_profile_sync_service.h

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for review Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& 124 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>&
125 debug_info_listener, 125 debug_info_listener,
126 bool success) OVERRIDE; 126 bool success) OVERRIDE;
127 127
128 virtual void OnConfigureDone( 128 virtual void OnConfigureDone(
129 const browser_sync::DataTypeManager::ConfigureResult& result) OVERRIDE; 129 const browser_sync::DataTypeManager::ConfigureResult& result) OVERRIDE;
130 130
131 // We implement our own version to avoid some DCHECKs. 131 // We implement our own version to avoid some DCHECKs.
132 virtual syncer::UserShare* GetUserShare() const OVERRIDE; 132 virtual syncer::UserShare* GetUserShare() const OVERRIDE;
133 133
134 static ProfileKeyedService* BuildAutoStartAsyncInit(Profile* profile); 134 static ProfileKeyedService* BuildAutoStartAsyncInit(
135 content::BrowserContext* profile);
135 136
136 ProfileSyncComponentsFactoryMock* components_factory_mock(); 137 ProfileSyncComponentsFactoryMock* components_factory_mock();
137 138
138 // If this is called, configuring data types will require a syncer 139 // If this is called, configuring data types will require a syncer
139 // nudge. 140 // nudge.
140 void dont_set_initial_sync_ended_on_init(); 141 void dont_set_initial_sync_ended_on_init();
141 void set_synchronous_sync_configuration(); 142 void set_synchronous_sync_configuration();
142 143
143 // Fails initial download until a new auth token is provided. 144 // Fails initial download until a new auth token is provided.
144 void fail_initial_download(); 145 void fail_initial_download();
(...skipping 27 matching lines...) Expand all
172 bool synchronous_sync_configuration_; 173 bool synchronous_sync_configuration_;
173 174
174 base::Closure callback_; 175 base::Closure callback_;
175 bool set_initial_sync_ended_on_init_; 176 bool set_initial_sync_ended_on_init_;
176 177
177 bool fail_initial_download_; 178 bool fail_initial_download_;
178 syncer::StorageOption storage_option_; 179 syncer::StorageOption storage_option_;
179 }; 180 };
180 181
181 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_ 182 #endif // CHROME_BROWSER_SYNC_TEST_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698