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

Side by Side Diff: chrome/browser/sync/glue/app_notification_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/app_notification_data_type_controller.h" 5 #include "chrome/browser/sync/glue/app_notification_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/extensions/app_notification_manager.h" 9 #include "chrome/browser/extensions/app_notification_manager.h"
10 #include "chrome/browser/extensions/extension_service.h" 10 #include "chrome/browser/extensions/extension_service.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 "chrome/browser/sync/profile_sync_service.h" 14 #include "chrome/browser/sync/profile_sync_service.h"
15 #include "chrome/common/chrome_notification_types.h" 15 #include "chrome/common/chrome_notification_types.h"
16 #include "content/public/browser/notification_source.h" 16 #include "content/public/browser/notification_source.h"
17 17
18 using content::BrowserThread;
19
18 namespace browser_sync { 20 namespace browser_sync {
19 21
20 AppNotificationDataTypeController::AppNotificationDataTypeController( 22 AppNotificationDataTypeController::AppNotificationDataTypeController(
21 ProfileSyncFactory* profile_sync_factory, 23 ProfileSyncFactory* profile_sync_factory,
22 Profile* profile, 24 Profile* profile,
23 ProfileSyncService* sync_service) 25 ProfileSyncService* sync_service)
24 : FrontendDataTypeController(profile_sync_factory, 26 : FrontendDataTypeController(profile_sync_factory,
25 profile, 27 profile,
26 sync_service) { 28 sync_service) {
27 } 29 }
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 result, 90 result,
89 MAX_START_RESULT); 91 MAX_START_RESULT);
90 } 92 }
91 93
92 AppNotificationManager* 94 AppNotificationManager*
93 AppNotificationDataTypeController::GetAppNotificationManager() { 95 AppNotificationDataTypeController::GetAppNotificationManager() {
94 return profile_->GetExtensionService()->app_notification_manager(); 96 return profile_->GetExtensionService()->app_notification_manager();
95 } 97 }
96 98
97 } // namespace browser_sync 99 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698