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

Side by Side Diff: chrome/browser/chromeos/drive/drive_integration_service.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 (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_util.h" 8 #include "base/files/file_util.h"
9 #include "base/prefs/pref_change_registrar.h" 9 #include "base/prefs/pref_change_registrar.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
11 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
12 #include "base/threading/sequenced_worker_pool.h" 12 #include "base/threading/sequenced_worker_pool.h"
13 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
14 #include "chrome/browser/chrome_notification_types.h" 14 #include "chrome/browser/chrome_notification_types.h"
15 #include "chrome/browser/chromeos/drive/debug_info_collector.h" 15 #include "chrome/browser/chromeos/drive/debug_info_collector.h"
16 #include "chrome/browser/chromeos/drive/download_handler.h" 16 #include "chrome/browser/chromeos/drive/download_handler.h"
17 #include "chrome/browser/chromeos/drive/drive_pref_names.h" 17 #include "chrome/browser/chromeos/drive/drive_pref_names.h"
18 #include "chrome/browser/chromeos/drive/file_cache.h" 18 #include "chrome/browser/chromeos/drive/file_cache.h"
19 #include "chrome/browser/chromeos/drive/file_system.h" 19 #include "chrome/browser/chromeos/drive/file_system.h"
20 #include "chrome/browser/chromeos/drive/file_system_util.h" 20 #include "chrome/browser/chromeos/drive/file_system_util.h"
21 #include "chrome/browser/chromeos/drive/job_scheduler.h" 21 #include "chrome/browser/chromeos/drive/job_scheduler.h"
22 #include "chrome/browser/chromeos/drive/resource_metadata.h" 22 #include "chrome/browser/chromeos/drive/resource_metadata.h"
23 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h" 23 #include "chrome/browser/chromeos/drive/resource_metadata_storage.h"
24 #include "chrome/browser/chromeos/file_manager/path_util.h" 24 #include "chrome/browser/chromeos/file_manager/path_util.h"
25 #include "chrome/browser/chromeos/profiles/profile_util.h" 25 #include "chrome/browser/chromeos/profiles/profile_util.h"
26 #include "chrome/browser/download/download_prefs.h" 26 #include "chrome/browser/download/download_prefs.h"
27 #include "chrome/browser/download/download_service.h" 27 #include "chrome/browser/download/download_service.h"
28 #include "chrome/browser/download/download_service_factory.h" 28 #include "chrome/browser/download/download_service_factory.h"
29 #include "chrome/browser/drive/drive_api_service.h"
30 #include "chrome/browser/drive/drive_api_util.h"
31 #include "chrome/browser/drive/drive_app_registry.h"
32 #include "chrome/browser/drive/drive_notification_manager.h"
33 #include "chrome/browser/drive/drive_notification_manager_factory.h" 29 #include "chrome/browser/drive/drive_notification_manager_factory.h"
34 #include "chrome/browser/drive/event_logger.h"
35 #include "chrome/browser/profiles/incognito_helpers.h" 30 #include "chrome/browser/profiles/incognito_helpers.h"
36 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
37 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 32 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
38 #include "chrome/browser/signin/signin_manager_factory.h" 33 #include "chrome/browser/signin/signin_manager_factory.h"
39 #include "chrome/common/chrome_version_info.h" 34 #include "chrome/common/chrome_version_info.h"
40 #include "chrome/common/pref_names.h" 35 #include "chrome/common/pref_names.h"
41 #include "chrome/grit/generated_resources.h" 36 #include "chrome/grit/generated_resources.h"
37 #include "components/drive/drive_api_util.h"
38 #include "components/drive/drive_app_registry.h"
39 #include "components/drive/drive_notification_manager.h"
40 #include "components/drive/event_logger.h"
41 #include "components/drive/service/drive_api_service.h"
42 #include "components/keyed_service/content/browser_context_dependency_manager.h" 42 #include "components/keyed_service/content/browser_context_dependency_manager.h"
43 #include "components/signin/core/browser/profile_oauth2_token_service.h" 43 #include "components/signin/core/browser/profile_oauth2_token_service.h"
44 #include "components/signin/core/browser/signin_manager.h" 44 #include "components/signin/core/browser/signin_manager.h"
45 #include "content/public/browser/browser_context.h" 45 #include "content/public/browser/browser_context.h"
46 #include "content/public/browser/browser_thread.h" 46 #include "content/public/browser/browser_thread.h"
47 #include "content/public/browser/notification_service.h" 47 #include "content/public/browser/notification_service.h"
48 #include "content/public/common/user_agent.h" 48 #include "content/public/common/user_agent.h"
49 #include "google_apis/drive/auth_service.h" 49 #include "google_apis/drive/auth_service.h"
50 #include "storage/browser/fileapi/external_mount_points.h" 50 #include "storage/browser/fileapi/external_mount_points.h"
51 #include "ui/base/l10n/l10n_util.h" 51 #include "ui/base/l10n/l10n_util.h"
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 profile, preference_watcher, 643 profile, preference_watcher,
644 NULL, std::string(), base::FilePath(), NULL); 644 NULL, std::string(), base::FilePath(), NULL);
645 } else { 645 } else {
646 service = factory_for_test_->Run(profile); 646 service = factory_for_test_->Run(profile);
647 } 647 }
648 648
649 return service; 649 return service;
650 } 650 }
651 651
652 } // namespace drive 652 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698