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

Side by Side Diff: chrome/browser/sync/glue/extension_setting_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/extension_setting_data_type_controller.h" 5 #include "chrome/browser/sync/glue/extension_setting_data_type_controller.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_settings_frontend.h" 9 #include "chrome/browser/extensions/extension_settings_frontend.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/sync/api/syncable_service.h" 11 #include "chrome/browser/sync/api/syncable_service.h"
12 #include "chrome/browser/sync/glue/generic_change_processor.h" 12 #include "chrome/browser/sync/glue/generic_change_processor.h"
13 #include "chrome/browser/sync/profile_sync_factory.h" 13 #include "chrome/browser/sync/profile_sync_factory.h"
14 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
15 15
16 using content::BrowserThread;
17
16 namespace browser_sync { 18 namespace browser_sync {
17 19
18 ExtensionSettingDataTypeController::ExtensionSettingDataTypeController( 20 ExtensionSettingDataTypeController::ExtensionSettingDataTypeController(
19 ProfileSyncFactory* profile_sync_factory, 21 ProfileSyncFactory* profile_sync_factory,
20 Profile* profile, 22 Profile* profile,
21 ProfileSyncService* profile_sync_service) 23 ProfileSyncService* profile_sync_service)
22 : NonFrontendDataTypeController(profile_sync_factory, profile), 24 : NonFrontendDataTypeController(profile_sync_factory, profile),
23 extension_settings_frontend_( 25 extension_settings_frontend_(
24 profile->GetExtensionService()->extension_settings_frontend()), 26 profile->GetExtensionService()->extension_settings_frontend()),
25 profile_sync_service_(profile_sync_service), 27 profile_sync_service_(profile_sync_service),
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 UMA_HISTOGRAM_TIMES("Sync.ExtensionSettingAssociationTime", time); 101 UMA_HISTOGRAM_TIMES("Sync.ExtensionSettingAssociationTime", time);
100 } 102 }
101 103
102 void ExtensionSettingDataTypeController::RecordStartFailure( 104 void ExtensionSettingDataTypeController::RecordStartFailure(
103 StartResult result) { 105 StartResult result) {
104 UMA_HISTOGRAM_ENUMERATION( 106 UMA_HISTOGRAM_ENUMERATION(
105 "Sync.ExtensionSettingStartFailures", result, MAX_START_RESULT); 107 "Sync.ExtensionSettingStartFailures", result, MAX_START_RESULT);
106 } 108 }
107 109
108 } // namespace browser_sync 110 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698