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

Side by Side Diff: chrome/browser/ui/webui/sync_internals_message_handler.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
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | chrome/chrome_browser.gypi » ('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 "chrome/browser/ui/webui/sync_internals_message_handler.h" 5 #include "chrome/browser/ui/webui/sync_internals_message_handler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/sync/profile_sync_service.h"
12 #include "chrome/browser/sync/profile_sync_service_factory.h" 11 #include "chrome/browser/sync/profile_sync_service_factory.h"
13 #include "chrome/common/channel_info.h" 12 #include "chrome/common/channel_info.h"
13 #include "components/browser_sync/browser/profile_sync_service.h"
14 #include "components/sync_driver/about_sync_util.h" 14 #include "components/sync_driver/about_sync_util.h"
15 #include "components/sync_driver/about_sync_util.h" 15 #include "components/sync_driver/about_sync_util.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "content/public/browser/web_ui.h" 17 #include "content/public/browser/web_ui.h"
18 #include "sync/internal_api/public/events/protocol_event.h" 18 #include "sync/internal_api/public/events/protocol_event.h"
19 #include "sync/internal_api/public/sessions/commit_counters.h" 19 #include "sync/internal_api/public/sessions/commit_counters.h"
20 #include "sync/internal_api/public/sessions/status_counters.h" 20 #include "sync/internal_api/public/sessions/status_counters.h"
21 #include "sync/internal_api/public/sessions/update_counters.h" 21 #include "sync/internal_api/public/sessions/update_counters.h"
22 #include "sync/internal_api/public/util/weak_handle.h" 22 #include "sync/internal_api/public/util/weak_handle.h"
23 #include "sync/js/js_event_details.h" 23 #include "sync/js/js_event_details.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 *value); 224 *value);
225 } 225 }
226 226
227 // Gets the ProfileSyncService of the underlying original profile. 227 // Gets the ProfileSyncService of the underlying original profile.
228 // May return NULL (e.g., if sync is disabled on the command line). 228 // May return NULL (e.g., if sync is disabled on the command line).
229 ProfileSyncService* SyncInternalsMessageHandler::GetProfileSyncService() { 229 ProfileSyncService* SyncInternalsMessageHandler::GetProfileSyncService() {
230 Profile* profile = Profile::FromWebUI(web_ui()); 230 Profile* profile = Profile::FromWebUI(web_ui());
231 return ProfileSyncServiceFactory::GetForProfile( 231 return ProfileSyncServiceFactory::GetForProfile(
232 profile->GetOriginalProfile()); 232 profile->GetOriginalProfile());
233 } 233 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698