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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.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_misc.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/frame/frame_util.h" 10 #include "ash/frame/frame_util.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/chromeos/drive/drive_pref_names.h" 16 #include "chrome/browser/chromeos/drive/drive_pref_names.h"
17 #include "chrome/browser/chromeos/drive/file_system_util.h" 17 #include "chrome/browser/chromeos/drive/file_system_util.h"
18 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" 18 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h"
19 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" 19 #include "chrome/browser/chromeos/file_manager/fileapi_util.h"
20 #include "chrome/browser/chromeos/file_manager/volume_manager.h" 20 #include "chrome/browser/chromeos/file_manager/volume_manager.h"
21 #include "chrome/browser/chromeos/file_manager/zip_file_creator.h" 21 #include "chrome/browser/chromeos/file_manager/zip_file_creator.h"
22 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h" 22 #include "chrome/browser/chromeos/file_system_provider/mount_path_util.h"
23 #include "chrome/browser/chromeos/file_system_provider/service.h" 23 #include "chrome/browser/chromeos/file_system_provider/service.h"
24 #include "chrome/browser/chromeos/profiles/profile_helper.h" 24 #include "chrome/browser/chromeos/profiles/profile_helper.h"
25 #include "chrome/browser/chromeos/settings/cros_settings.h" 25 #include "chrome/browser/chromeos/settings/cros_settings.h"
26 #include "chrome/browser/devtools/devtools_window.h" 26 #include "chrome/browser/devtools/devtools_window.h"
27 #include "chrome/browser/drive/event_logger.h"
28 #include "chrome/browser/extensions/api/file_handlers/mime_util.h" 27 #include "chrome/browser/extensions/api/file_handlers/mime_util.h"
29 #include "chrome/browser/extensions/devtools_util.h" 28 #include "chrome/browser/extensions/devtools_util.h"
30 #include "chrome/browser/lifetime/application_lifetime.h" 29 #include "chrome/browser/lifetime/application_lifetime.h"
31 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/browser/profiles/profile_manager.h" 31 #include "chrome/browser/profiles/profile_manager.h"
33 #include "chrome/browser/profiles/profiles_state.h" 32 #include "chrome/browser/profiles/profiles_state.h"
34 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 33 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
35 #include "chrome/browser/signin/signin_manager_factory.h" 34 #include "chrome/browser/signin/signin_manager_factory.h"
36 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" 35 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h"
37 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h" 36 #include "chrome/browser/ui/ash/multi_user/multi_user_window_manager.h"
38 #include "chrome/common/extensions/api/file_manager_private.h" 37 #include "chrome/common/extensions/api/file_manager_private.h"
39 #include "chrome/common/extensions/api/file_manager_private_internal.h" 38 #include "chrome/common/extensions/api/file_manager_private_internal.h"
40 #include "chrome/common/extensions/api/manifest_types.h" 39 #include "chrome/common/extensions/api/manifest_types.h"
41 #include "chrome/common/pref_names.h" 40 #include "chrome/common/pref_names.h"
41 #include "components/drive/event_logger.h"
42 #include "components/signin/core/browser/profile_oauth2_token_service.h" 42 #include "components/signin/core/browser/profile_oauth2_token_service.h"
43 #include "components/signin/core/browser/signin_manager.h" 43 #include "components/signin/core/browser/signin_manager.h"
44 #include "components/user_manager/user_manager.h" 44 #include "components/user_manager/user_manager.h"
45 #include "content/public/browser/render_view_host.h" 45 #include "content/public/browser/render_view_host.h"
46 #include "content/public/browser/web_contents.h" 46 #include "content/public/browser/web_contents.h"
47 #include "content/public/common/page_zoom.h" 47 #include "content/public/common/page_zoom.h"
48 #include "extensions/browser/app_window/app_window.h" 48 #include "extensions/browser/app_window/app_window.h"
49 #include "extensions/browser/app_window/app_window_registry.h" 49 #include "extensions/browser/app_window/app_window_registry.h"
50 #include "google_apis/drive/auth_service.h" 50 #include "google_apis/drive/auth_service.h"
51 #include "ui/base/webui/web_ui_util.h" 51 #include "ui/base/webui/web_ui_util.h"
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 base::File::Error result) { 626 base::File::Error result) {
627 if (result != base::File::FILE_OK) { 627 if (result != base::File::FILE_OK) {
628 Respond(Error("Failed to execute the action.")); 628 Respond(Error("Failed to execute the action."));
629 return; 629 return;
630 } 630 }
631 631
632 Respond(NoArguments()); 632 Respond(NoArguments());
633 } 633 }
634 634
635 } // namespace extensions 635 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698