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

Side by Side Diff: ios/chrome/browser/ui/webui/sync_internals/sync_internals_message_handler.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/ui/webui/sync_internals/sync_internals_message_hand ler.h" 5 #include "ios/chrome/browser/ui/webui/sync_internals/sync_internals_message_hand ler.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "components/browser_sync/browser/profile_sync_service.h" 10 #include "components/browser_sync/browser/profile_sync_service.h"
11 #include "components/signin/core/browser/signin_manager.h" 11 #include "components/signin/core/browser/signin_manager.h"
12 #include "components/sync/base/weak_handle.h"
13 #include "components/sync/engine/events/protocol_event.h"
14 #include "components/sync/js/js_event_details.h"
15 #include "components/sync/sessions/commit_counters.h"
16 #include "components/sync/sessions/status_counters.h"
17 #include "components/sync/sessions/update_counters.h"
12 #include "components/sync_driver/about_sync_util.h" 18 #include "components/sync_driver/about_sync_util.h"
13 #include "components/sync_driver/sync_service.h" 19 #include "components/sync_driver/sync_service.h"
14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 20 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
15 #include "ios/chrome/browser/signin/signin_manager_factory.h" 21 #include "ios/chrome/browser/signin/signin_manager_factory.h"
16 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" 22 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h"
17 #include "ios/chrome/common/channel_info.h" 23 #include "ios/chrome/common/channel_info.h"
18 #include "ios/web/public/web_thread.h" 24 #include "ios/web/public/web_thread.h"
19 #include "ios/web/public/webui/web_ui_ios.h" 25 #include "ios/web/public/webui/web_ui_ios.h"
20 #include "sync/internal_api/public/events/protocol_event.h"
21 #include "sync/internal_api/public/sessions/commit_counters.h"
22 #include "sync/internal_api/public/sessions/status_counters.h"
23 #include "sync/internal_api/public/sessions/update_counters.h"
24 #include "sync/internal_api/public/util/weak_handle.h"
25 #include "sync/js/js_event_details.h"
26 26
27 using syncer::JsEventDetails; 27 using syncer::JsEventDetails;
28 using syncer::ModelTypeSet; 28 using syncer::ModelTypeSet;
29 using syncer::WeakHandle; 29 using syncer::WeakHandle;
30 30
31 SyncInternalsMessageHandler::SyncInternalsMessageHandler() 31 SyncInternalsMessageHandler::SyncInternalsMessageHandler()
32 : is_registered_(false), 32 : is_registered_(false),
33 is_registered_for_counters_(false), 33 is_registered_for_counters_(false),
34 weak_ptr_factory_(this) {} 34 weak_ptr_factory_(this) {}
35 35
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 *value); 228 *value);
229 } 229 }
230 230
231 // Gets the SyncService of the underlying original profile. May return null. 231 // Gets the SyncService of the underlying original profile. May return null.
232 sync_driver::SyncService* SyncInternalsMessageHandler::GetSyncService() { 232 sync_driver::SyncService* SyncInternalsMessageHandler::GetSyncService() {
233 ios::ChromeBrowserState* browser_state = 233 ios::ChromeBrowserState* browser_state =
234 ios::ChromeBrowserState::FromWebUIIOS(web_ui()); 234 ios::ChromeBrowserState::FromWebUIIOS(web_ui());
235 return IOSChromeProfileSyncServiceFactory::GetForBrowserState( 235 return IOSChromeProfileSyncServiceFactory::GetForBrowserState(
236 browser_state->GetOriginalChromeBrowserState()); 236 browser_state->GetOriginalChromeBrowserState());
237 } 237 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/webui/sync_internals/sync_internals_message_handler.h ('k') | ios/chrome/ios_chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698