| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |