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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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
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 "chrome/browser/extensions/api/preferences_private/preferences_private_ api.h" 5 #include "chrome/browser/extensions/api/preferences_private/preferences_private_ api.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/sync/profile_sync_service.h"
9 #include "chrome/browser/sync/profile_sync_service_factory.h" 8 #include "chrome/browser/sync/profile_sync_service_factory.h"
10 #include "chrome/common/extensions/api/preferences_private.h" 9 #include "chrome/common/extensions/api/preferences_private.h"
10 #include "components/browser_sync/browser/profile_sync_service.h"
11 #include "components/sync_driver/sync_prefs.h" 11 #include "components/sync_driver/sync_prefs.h"
12 12
13 namespace extensions { 13 namespace extensions {
14 14
15 namespace GetSyncCategoriesWithoutPassphrase = 15 namespace GetSyncCategoriesWithoutPassphrase =
16 api::preferences_private::GetSyncCategoriesWithoutPassphrase; 16 api::preferences_private::GetSyncCategoriesWithoutPassphrase;
17 17
18 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction:: 18 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction::
19 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction() {} 19 PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction() {}
20 20
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 it.Inc()) { 60 it.Inc()) {
61 categories.push_back(syncer::ModelTypeToString(it.Get())); 61 categories.push_back(syncer::ModelTypeToString(it.Get()));
62 } 62 }
63 63
64 results_ = GetSyncCategoriesWithoutPassphrase::Results::Create(categories); 64 results_ = GetSyncCategoriesWithoutPassphrase::Results::Create(categories);
65 SendResponse(true); 65 SendResponse(true);
66 return true; 66 return true;
67 } 67 }
68 68
69 } // namespace extensions 69 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698