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

Side by Side Diff: chrome/browser/ui/webui/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 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 <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/sync/profile_sync_service_factory.h" 13 #include "chrome/browser/sync/profile_sync_service_factory.h"
14 #include "chrome/common/channel_info.h" 14 #include "chrome/common/channel_info.h"
15 #include "components/browser_sync/browser/profile_sync_service.h" 15 #include "components/browser_sync/browser/profile_sync_service.h"
16 #include "components/signin/core/browser/signin_manager_base.h" 16 #include "components/signin/core/browser/signin_manager_base.h"
17 #include "components/sync/base/weak_handle.h"
18 #include "components/sync/engine/events/protocol_event.h"
19 #include "components/sync/js/js_event_details.h"
20 #include "components/sync/sessions/commit_counters.h"
21 #include "components/sync/sessions/status_counters.h"
22 #include "components/sync/sessions/update_counters.h"
17 #include "components/sync_driver/about_sync_util.h" 23 #include "components/sync_driver/about_sync_util.h"
18 #include "components/sync_driver/sync_service.h" 24 #include "components/sync_driver/sync_service.h"
19 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
20 #include "content/public/browser/web_ui.h" 26 #include "content/public/browser/web_ui.h"
21 #include "sync/internal_api/public/events/protocol_event.h"
22 #include "sync/internal_api/public/sessions/commit_counters.h"
23 #include "sync/internal_api/public/sessions/status_counters.h"
24 #include "sync/internal_api/public/sessions/update_counters.h"
25 #include "sync/internal_api/public/util/weak_handle.h"
26 #include "sync/js/js_event_details.h"
27 27
28 using syncer::JsEventDetails; 28 using syncer::JsEventDetails;
29 using syncer::ModelTypeSet; 29 using syncer::ModelTypeSet;
30 using syncer::WeakHandle; 30 using syncer::WeakHandle;
31 31
32 namespace { 32 namespace {
33 class UtilAboutSyncDataExtractor : public AboutSyncDataExtractor { 33 class UtilAboutSyncDataExtractor : public AboutSyncDataExtractor {
34 public: 34 public:
35 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation( 35 std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
36 sync_driver::SyncService* service, 36 sync_driver::SyncService* service,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 *value); 244 *value);
245 } 245 }
246 246
247 // Gets the ProfileSyncService of the underlying original profile. 247 // Gets the ProfileSyncService of the underlying original profile.
248 // May return NULL (e.g., if sync is disabled on the command line). 248 // May return NULL (e.g., if sync is disabled on the command line).
249 ProfileSyncService* SyncInternalsMessageHandler::GetProfileSyncService() { 249 ProfileSyncService* SyncInternalsMessageHandler::GetProfileSyncService() {
250 Profile* profile = Profile::FromWebUI(web_ui()); 250 Profile* profile = Profile::FromWebUI(web_ui());
251 return ProfileSyncServiceFactory::GetForProfile( 251 return ProfileSyncServiceFactory::GetForProfile(
252 profile->GetOriginalProfile()); 252 profile->GetOriginalProfile());
253 } 253 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_message_handler.h ('k') | chrome/browser/ui/webui/sync_internals_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698