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

Side by Side Diff: chrome/browser/chromeos/drive/drive_integration_service.cc

Issue 2853363002: Rename the DownloadService to DownloadCoreService (Closed)
Patch Set: Created 3 years, 7 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/chromeos/drive/drive_integration_service.h" 5 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_enumerator.h" 8 #include "base/files/file_enumerator.h"
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/strings/stringprintf.h" 12 #include "base/strings/stringprintf.h"
13 #include "base/sys_info.h" 13 #include "base/sys_info.h"
14 #include "base/threading/sequenced_worker_pool.h" 14 #include "base/threading/sequenced_worker_pool.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/chromeos/drive/debug_info_collector.h" 17 #include "chrome/browser/chromeos/drive/debug_info_collector.h"
18 #include "chrome/browser/chromeos/drive/download_handler.h" 18 #include "chrome/browser/chromeos/drive/download_handler.h"
19 #include "chrome/browser/chromeos/drive/file_system_util.h" 19 #include "chrome/browser/chromeos/drive/file_system_util.h"
20 #include "chrome/browser/chromeos/file_manager/path_util.h" 20 #include "chrome/browser/chromeos/file_manager/path_util.h"
21 #include "chrome/browser/chromeos/profiles/profile_util.h" 21 #include "chrome/browser/chromeos/profiles/profile_util.h"
22 #include "chrome/browser/download/download_core_service_factory.h"
22 #include "chrome/browser/download/download_prefs.h" 23 #include "chrome/browser/download/download_prefs.h"
23 #include "chrome/browser/download/download_service.h"
24 #include "chrome/browser/download/download_service_factory.h"
25 #include "chrome/browser/drive/drive_notification_manager_factory.h" 24 #include "chrome/browser/drive/drive_notification_manager_factory.h"
26 #include "chrome/browser/profiles/incognito_helpers.h" 25 #include "chrome/browser/profiles/incognito_helpers.h"
27 #include "chrome/browser/profiles/profile.h" 26 #include "chrome/browser/profiles/profile.h"
28 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
29 #include "chrome/browser/signin/signin_manager_factory.h" 28 #include "chrome/browser/signin/signin_manager_factory.h"
30 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
31 #include "chrome/grit/generated_resources.h" 30 #include "chrome/grit/generated_resources.h"
32 #include "components/drive/chromeos/file_cache.h" 31 #include "components/drive/chromeos/file_cache.h"
33 #include "components/drive/chromeos/file_system.h" 32 #include "components/drive/chromeos/file_system.h"
34 #include "components/drive/chromeos/resource_metadata.h" 33 #include "components/drive/chromeos/resource_metadata.h"
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 DriveIntegrationServiceFactory* DriveIntegrationServiceFactory::GetInstance() { 631 DriveIntegrationServiceFactory* DriveIntegrationServiceFactory::GetInstance() {
633 return base::Singleton<DriveIntegrationServiceFactory>::get(); 632 return base::Singleton<DriveIntegrationServiceFactory>::get();
634 } 633 }
635 634
636 DriveIntegrationServiceFactory::DriveIntegrationServiceFactory() 635 DriveIntegrationServiceFactory::DriveIntegrationServiceFactory()
637 : BrowserContextKeyedServiceFactory( 636 : BrowserContextKeyedServiceFactory(
638 "DriveIntegrationService", 637 "DriveIntegrationService",
639 BrowserContextDependencyManager::GetInstance()) { 638 BrowserContextDependencyManager::GetInstance()) {
640 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); 639 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance());
641 DependsOn(DriveNotificationManagerFactory::GetInstance()); 640 DependsOn(DriveNotificationManagerFactory::GetInstance());
642 DependsOn(DownloadServiceFactory::GetInstance()); 641 DependsOn(DownloadCoreServiceFactory::GetInstance());
643 } 642 }
644 643
645 DriveIntegrationServiceFactory::~DriveIntegrationServiceFactory() { 644 DriveIntegrationServiceFactory::~DriveIntegrationServiceFactory() {
646 } 645 }
647 646
648 content::BrowserContext* DriveIntegrationServiceFactory::GetBrowserContextToUse( 647 content::BrowserContext* DriveIntegrationServiceFactory::GetBrowserContextToUse(
649 content::BrowserContext* context) const { 648 content::BrowserContext* context) const {
650 return chrome::GetBrowserContextRedirectedInIncognito(context); 649 return chrome::GetBrowserContextRedirectedInIncognito(context);
651 } 650 }
652 651
(...skipping 14 matching lines...) Expand all
667 profile, preference_watcher, 666 profile, preference_watcher,
668 NULL, std::string(), base::FilePath(), NULL); 667 NULL, std::string(), base::FilePath(), NULL);
669 } else { 668 } else {
670 service = factory_for_test_->Run(profile); 669 service = factory_for_test_->Run(profile);
671 } 670 }
672 671
673 return service; 672 return service;
674 } 673 }
675 674
676 } // namespace drive 675 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698