OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 8 #include "chrome/browser/bookmarks/bookmark_model.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/sync/profile_sync_factory.h" | 10 #include "chrome/browser/sync/profile_sync_factory.h" |
11 #include "chrome/browser/sync/profile_sync_service.h" | 11 #include "chrome/browser/sync/profile_sync_service.h" |
12 #include "chrome/common/chrome_notification_types.h" | 12 #include "chrome/common/chrome_notification_types.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 #include "content/public/browser/notification_details.h" | 14 #include "content/public/browser/notification_details.h" |
15 #include "content/public/browser/notification_source.h" | 15 #include "content/public/browser/notification_source.h" |
16 | 16 |
| 17 using content::BrowserThread; |
| 18 |
17 namespace browser_sync { | 19 namespace browser_sync { |
18 | 20 |
19 BookmarkDataTypeController::BookmarkDataTypeController( | 21 BookmarkDataTypeController::BookmarkDataTypeController( |
20 ProfileSyncFactory* profile_sync_factory, | 22 ProfileSyncFactory* profile_sync_factory, |
21 Profile* profile, | 23 Profile* profile, |
22 ProfileSyncService* sync_service) | 24 ProfileSyncService* sync_service) |
23 : FrontendDataTypeController(profile_sync_factory, | 25 : FrontendDataTypeController(profile_sync_factory, |
24 profile, | 26 profile, |
25 sync_service) { | 27 sync_service) { |
26 } | 28 } |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 UMA_HISTOGRAM_TIMES("Sync.BookmarkAssociationTime", time); | 82 UMA_HISTOGRAM_TIMES("Sync.BookmarkAssociationTime", time); |
81 } | 83 } |
82 | 84 |
83 void BookmarkDataTypeController::RecordStartFailure(StartResult result) { | 85 void BookmarkDataTypeController::RecordStartFailure(StartResult result) { |
84 UMA_HISTOGRAM_ENUMERATION("Sync.BookmarkStartFailures", | 86 UMA_HISTOGRAM_ENUMERATION("Sync.BookmarkStartFailures", |
85 result, | 87 result, |
86 MAX_START_RESULT); | 88 MAX_START_RESULT); |
87 } | 89 } |
88 | 90 |
89 } // namespace browser_sync | 91 } // namespace browser_sync |
OLD | NEW |