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

Side by Side Diff: chrome/browser/sync/profile_sync_service_mock.cc

Issue 11243002: Move the bits of Prefs where production code has only trivially easy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, fix gypi problem Created 8 years, 2 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 #include "base/prefs/testing_pref_store.h"
5 #include "chrome/browser/prefs/pref_service.h" 6 #include "chrome/browser/prefs/pref_service.h"
6 #include "chrome/browser/prefs/testing_pref_store.h"
7 #include "chrome/browser/signin/signin_manager_factory.h" 7 #include "chrome/browser/signin/signin_manager_factory.h"
8 #include "chrome/browser/sync/profile_sync_service_mock.h" 8 #include "chrome/browser/sync/profile_sync_service_mock.h"
9 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 9 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
10 #include "chrome/common/pref_names.h" 10 #include "chrome/common/pref_names.h"
11 #include "chrome/common/url_constants.h" 11 #include "chrome/common/url_constants.h"
12 #include "chrome/test/base/testing_profile.h" 12 #include "chrome/test/base/testing_profile.h"
13 13
14 ProfileSyncServiceMock::ProfileSyncServiceMock() 14 ProfileSyncServiceMock::ProfileSyncServiceMock()
15 : ProfileSyncService(NULL, 15 : ProfileSyncService(NULL,
16 NULL, 16 NULL,
(...skipping 16 matching lines...) Expand all
33 TestingProfile* profile = new TestingProfile(); 33 TestingProfile* profile = new TestingProfile();
34 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo"); 34 profile->GetPrefs()->SetString(prefs::kGoogleServicesUsername, "foo");
35 return profile; 35 return profile;
36 } 36 }
37 37
38 // static 38 // static
39 ProfileKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService( 39 ProfileKeyedService* ProfileSyncServiceMock::BuildMockProfileSyncService(
40 Profile* profile) { 40 Profile* profile) {
41 return new ProfileSyncServiceMock(profile); 41 return new ProfileSyncServiceMock(profile);
42 } 42 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/typed_url_data_type_controller.h ('k') | chrome/browser/translate/translate_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698