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

Side by Side Diff: chrome/browser/sync/glue/search_engine_data_type_controller.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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/search_engine_data_type_controller.h" 5 #include "chrome/browser/sync/glue/search_engine_data_type_controller.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/search_engines/template_url_service.h" 9 #include "chrome/browser/search_engines/template_url_service.h"
10 #include "chrome/browser/search_engines/template_url_service_factory.h" 10 #include "chrome/browser/search_engines/template_url_service_factory.h"
11 #include "chrome/browser/sync/api/syncable_service.h" 11 #include "chrome/browser/sync/api/syncable_service.h"
12 #include "chrome/browser/sync/profile_sync_factory.h" 12 #include "chrome/browser/sync/profile_sync_factory.h"
13 #include "chrome/browser/sync/profile_sync_service.h" 13 #include "chrome/browser/sync/profile_sync_service.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.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 SearchEngineDataTypeController::SearchEngineDataTypeController( 21 SearchEngineDataTypeController::SearchEngineDataTypeController(
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 UMA_HISTOGRAM_TIMES("Sync.SearchEngineAssociationTime", time); 91 UMA_HISTOGRAM_TIMES("Sync.SearchEngineAssociationTime", time);
90 } 92 }
91 93
92 void SearchEngineDataTypeController::RecordStartFailure(StartResult result) { 94 void SearchEngineDataTypeController::RecordStartFailure(StartResult result) {
93 UMA_HISTOGRAM_ENUMERATION("Sync.SearchEngineStartFailures", 95 UMA_HISTOGRAM_ENUMERATION("Sync.SearchEngineStartFailures",
94 result, 96 result,
95 MAX_START_RESULT); 97 MAX_START_RESULT);
96 } 98 }
97 99
98 } // namespace browser_sync 100 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698