OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sync/glue/bookmark_data_type_controller.h" | 5 #include "chrome/browser/sync/glue/bookmark_data_type_controller.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/history/history_service.h" | 10 #include "chrome/browser/history/history_service.h" |
11 #include "chrome/browser/history/history_service_factory.h" | 11 #include "chrome/browser/history/history_service_factory.h" |
12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
13 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" | 13 #include "chrome/browser/sync/glue/chrome_report_unrecoverable_error.h" |
14 #include "chrome/browser/sync/profile_sync_components_factory.h" | 14 #include "chrome/browser/sync/profile_sync_components_factory.h" |
15 #include "chrome/browser/sync/profile_sync_service.h" | 15 #include "chrome/browser/sync/profile_sync_service.h" |
16 #include "components/bookmarks/core/browser/bookmark_model.h" | 16 #include "components/bookmarks/browser/bookmark_model.h" |
17 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/notification_details.h" | 18 #include "content/public/browser/notification_details.h" |
19 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 | 22 |
23 namespace browser_sync { | 23 namespace browser_sync { |
24 | 24 |
25 BookmarkDataTypeController::BookmarkDataTypeController( | 25 BookmarkDataTypeController::BookmarkDataTypeController( |
26 ProfileSyncComponentsFactory* profile_sync_factory, | 26 ProfileSyncComponentsFactory* profile_sync_factory, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 HistoryService* history = HistoryServiceFactory::GetForProfile( | 125 HistoryService* history = HistoryServiceFactory::GetForProfile( |
126 profile_, Profile::EXPLICIT_ACCESS); | 126 profile_, Profile::EXPLICIT_ACCESS); |
127 if (!history || !history->BackendLoaded()) | 127 if (!history || !history->BackendLoaded()) |
128 return false; | 128 return false; |
129 | 129 |
130 // All necessary services are loaded. | 130 // All necessary services are loaded. |
131 return true; | 131 return true; |
132 } | 132 } |
133 | 133 |
134 } // namespace browser_sync | 134 } // namespace browser_sync |
OLD | NEW |