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

Side by Side Diff: chrome/browser/drive/drive_notification_manager_factory.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 months 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/drive/drive_notification_manager_factory.h" 5 #include "chrome/browser/drive/drive_notification_manager_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/drive/drive_notification_manager.h"
9 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" 8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h"
10 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
12 #include "chrome/browser/sync/profile_sync_service_factory.h" 11 #include "chrome/browser/sync/profile_sync_service_factory.h"
12 #include "components/drive/drive_notification_manager.h"
13 #include "components/invalidation/impl/profile_invalidation_provider.h" 13 #include "components/invalidation/impl/profile_invalidation_provider.h"
14 #include "components/keyed_service/content/browser_context_dependency_manager.h" 14 #include "components/keyed_service/content/browser_context_dependency_manager.h"
15 15
16 namespace drive { 16 namespace drive {
17 17
18 // static 18 // static
19 DriveNotificationManager* 19 DriveNotificationManager*
20 DriveNotificationManagerFactory::FindForBrowserContext( 20 DriveNotificationManagerFactory::FindForBrowserContext(
21 content::BrowserContext* context) { 21 content::BrowserContext* context) {
22 return static_cast<DriveNotificationManager*>( 22 return static_cast<DriveNotificationManager*>(
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 invalidation::ProfileInvalidationProvider* invalidation_provider = 61 invalidation::ProfileInvalidationProvider* invalidation_provider =
62 invalidation::ProfileInvalidationProviderFactory::GetForProfile( 62 invalidation::ProfileInvalidationProviderFactory::GetForProfile(
63 Profile::FromBrowserContext(context)); 63 Profile::FromBrowserContext(context));
64 DCHECK(invalidation_provider); 64 DCHECK(invalidation_provider);
65 DCHECK(invalidation_provider->GetInvalidationService()); 65 DCHECK(invalidation_provider->GetInvalidationService());
66 return new DriveNotificationManager( 66 return new DriveNotificationManager(
67 invalidation_provider->GetInvalidationService()); 67 invalidation_provider->GetInvalidationService());
68 } 68 }
69 69
70 } // namespace drive 70 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/drive/drive_notification_manager.cc ('k') | chrome/browser/drive/drive_notification_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698