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

Side by Side Diff: chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc

Issue 162443004: sync: final pieces to sync deferred initialization (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_signin_manager_wrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/bind_helpers.h" 7 #include "base/bind_helpers.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 21 matching lines...) Expand all
32 namespace { 32 namespace {
33 33
34 class FakeProfileSyncService : public ProfileSyncService { 34 class FakeProfileSyncService : public ProfileSyncService {
35 public: 35 public:
36 explicit FakeProfileSyncService(Profile* profile) 36 explicit FakeProfileSyncService(Profile* profile)
37 : ProfileSyncService( 37 : ProfileSyncService(
38 NULL, 38 NULL,
39 profile, 39 profile,
40 NULL, 40 NULL,
41 ProfileOAuth2TokenServiceFactory::GetForProfile(profile), 41 ProfileOAuth2TokenServiceFactory::GetForProfile(profile),
42 ProfileSyncService::MANUAL_START), 42 browser_sync::MANUAL_START),
43 sync_initialized_(true), 43 sync_initialized_(true),
44 initialized_state_violation_(false) {} 44 initialized_state_violation_(false) {}
45 45
46 virtual ~FakeProfileSyncService() {} 46 virtual ~FakeProfileSyncService() {}
47 47
48 static BrowserContextKeyedService* BuildFakeProfileSyncService( 48 static BrowserContextKeyedService* BuildFakeProfileSyncService(
49 content::BrowserContext* context) { 49 content::BrowserContext* context) {
50 return new FakeProfileSyncService(static_cast<Profile*>(context)); 50 return new FakeProfileSyncService(static_cast<Profile*>(context));
51 } 51 }
52 52
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Verifies that we wait for the sync service to be ready before checking 178 // Verifies that we wait for the sync service to be ready before checking
179 // encryption status. 179 // encryption status.
180 IN_PROC_BROWSER_TEST_F(PreferencesPrivateApiTest, 180 IN_PROC_BROWSER_TEST_F(PreferencesPrivateApiTest,
181 GetSyncCategoriesWithoutPassphraseAsynchronous) { 181 GetSyncCategoriesWithoutPassphraseAsynchronous) {
182 service_->set_sync_initialized(false); 182 service_->set_sync_initialized(false);
183 TestGetSyncCategoriesWithoutPassphraseFunction(); 183 TestGetSyncCategoriesWithoutPassphraseFunction();
184 } 184 }
185 185
186 } // namespace 186 } // namespace
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/managed_mode/managed_user_signin_manager_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698