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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_drive.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/chromeos/extensions/file_manager/private_api_drive.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_drive.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "chrome/browser/browser_process.h" 11 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 12 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
13 #include "chrome/browser/chromeos/drive/file_system_util.h" 13 #include "chrome/browser/chromeos/drive/file_system_util.h"
14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" 14 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h"
15 #include "chrome/browser/chromeos/file_manager/file_tasks.h" 15 #include "chrome/browser/chromeos/file_manager/file_tasks.h"
16 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" 16 #include "chrome/browser/chromeos/file_manager/fileapi_util.h"
17 #include "chrome/browser/chromeos/file_manager/url_util.h" 17 #include "chrome/browser/chromeos/file_manager/url_util.h"
18 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" 18 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h"
19 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h" 19 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte rface.h"
20 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" 20 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h"
21 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" 21 #include "chrome/browser/chromeos/fileapi/file_system_backend.h"
22 #include "chrome/browser/chromeos/profiles/profile_helper.h" 22 #include "chrome/browser/chromeos/profiles/profile_helper.h"
23 #include "chrome/browser/drive/drive_app_registry.h"
24 #include "chrome/browser/drive/event_logger.h"
25 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/profiles/profile_manager.h" 24 #include "chrome/browser/profiles/profile_manager.h"
27 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 25 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
28 #include "chrome/browser/signin/signin_manager_factory.h" 26 #include "chrome/browser/signin/signin_manager_factory.h"
29 #include "chrome/common/extensions/api/file_manager_private_internal.h" 27 #include "chrome/common/extensions/api/file_manager_private_internal.h"
30 #include "chromeos/chromeos_switches.h" 28 #include "chromeos/chromeos_switches.h"
31 #include "chromeos/network/network_handler.h" 29 #include "chromeos/network/network_handler.h"
32 #include "chromeos/network/network_state_handler.h" 30 #include "chromeos/network/network_state_handler.h"
31 #include "components/drive/drive_app_registry.h"
32 #include "components/drive/event_logger.h"
33 #include "components/signin/core/browser/profile_oauth2_token_service.h" 33 #include "components/signin/core/browser/profile_oauth2_token_service.h"
34 #include "components/signin/core/browser/signin_manager.h" 34 #include "components/signin/core/browser/signin_manager.h"
35 #include "content/public/browser/browser_thread.h" 35 #include "content/public/browser/browser_thread.h"
36 #include "google_apis/drive/auth_service.h" 36 #include "google_apis/drive/auth_service.h"
37 #include "google_apis/drive/drive_api_url_generator.h" 37 #include "google_apis/drive/drive_api_url_generator.h"
38 #include "storage/common/fileapi/file_system_info.h" 38 #include "storage/common/fileapi/file_system_info.h"
39 #include "storage/common/fileapi/file_system_util.h" 39 #include "storage/common/fileapi/file_system_util.h"
40 #include "url/gurl.h" 40 #include "url/gurl.h"
41 41
42 using content::BrowserThread; 42 using content::BrowserThread;
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 } 1098 }
1099 1099
1100 const std::string url = 1100 const std::string url =
1101 download_url_.Resolve("?access_token=" + access_token).spec(); 1101 download_url_.Resolve("?access_token=" + access_token).spec();
1102 SetResult(new base::StringValue(url)); 1102 SetResult(new base::StringValue(url));
1103 1103
1104 SendResponse(true); 1104 SendResponse(true);
1105 } 1105 }
1106 1106
1107 } // namespace extensions 1107 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698