OLD | NEW |
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/file_manager/open_util.h" | 5 #include "chrome/browser/chromeos/file_manager/open_util.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/chromeos/drive/file_system_util.h" | 11 #include "chrome/browser/chromeos/drive/file_system_util.h" |
12 #include "chrome/browser/chromeos/file_manager/app_id.h" | 12 #include "chrome/browser/chromeos/file_manager/app_id.h" |
13 #include "chrome/browser/chromeos/file_manager/file_browser_handlers.h" | 13 #include "chrome/browser/chromeos/file_manager/file_browser_handlers.h" |
14 #include "chrome/browser/chromeos/file_manager/file_tasks.h" | 14 #include "chrome/browser/chromeos/file_manager/file_tasks.h" |
15 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 15 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
16 #include "chrome/browser/chromeos/file_manager/mime_util.h" | 16 #include "chrome/browser/chromeos/file_manager/mime_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/extensions/api/file_handlers/app_file_handler_util.h" | 18 #include "chrome/browser/extensions/api/file_handlers/app_file_handler_util.h" |
19 #include "chrome/browser/extensions/extension_service.h" | 19 #include "chrome/browser/extensions/extension_service.h" |
20 #include "chrome/browser/extensions/extension_system.h" | 20 #include "chrome/browser/extensions/extension_system.h" |
21 #include "chrome/browser/google_apis/task_util.h" | |
22 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/profiles/profile_manager.h" | 22 #include "chrome/browser/profiles/profile_manager.h" |
24 #include "chrome/browser/ui/browser.h" | 23 #include "chrome/browser/ui/browser.h" |
25 #include "chrome/browser/ui/browser_finder.h" | 24 #include "chrome/browser/ui/browser_finder.h" |
26 #include "chrome/browser/ui/browser_tabstrip.h" | 25 #include "chrome/browser/ui/browser_tabstrip.h" |
27 #include "chrome/browser/ui/browser_window.h" | 26 #include "chrome/browser/ui/browser_window.h" |
28 #include "chrome/browser/ui/extensions/application_launch.h" | 27 #include "chrome/browser/ui/extensions/application_launch.h" |
29 #include "chrome/browser/ui/simple_message_box.h" | 28 #include "chrome/browser/ui/simple_message_box.h" |
30 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handle
r.h" | 29 #include "chrome/common/extensions/api/file_browser_handlers/file_browser_handle
r.h" |
31 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
32 #include "content/public/browser/storage_partition.h" | 31 #include "content/public/browser/storage_partition.h" |
33 #include "content/public/browser/user_metrics.h" | 32 #include "content/public/browser/user_metrics.h" |
| 33 #include "google_apis/drive/task_util.h" |
34 #include "grit/generated_resources.h" | 34 #include "grit/generated_resources.h" |
35 #include "ui/base/l10n/l10n_util.h" | 35 #include "ui/base/l10n/l10n_util.h" |
36 #include "webkit/browser/fileapi/file_system_backend.h" | 36 #include "webkit/browser/fileapi/file_system_backend.h" |
37 #include "webkit/browser/fileapi/file_system_context.h" | 37 #include "webkit/browser/fileapi/file_system_context.h" |
38 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 38 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
39 #include "webkit/browser/fileapi/file_system_url.h" | 39 #include "webkit/browser/fileapi/file_system_url.h" |
40 | 40 |
41 using content::BrowserContext; | 41 using content::BrowserContext; |
42 using content::BrowserThread; | 42 using content::BrowserThread; |
43 using content::UserMetricsAction; | 43 using content::UserMetricsAction; |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 base::Bind(&ContinueOpenItem, profile, file_path)); | 241 base::Bind(&ContinueOpenItem, profile, file_path)); |
242 } | 242 } |
243 | 243 |
244 void ShowItemInFolder(const base::FilePath& file_path) { | 244 void ShowItemInFolder(const base::FilePath& file_path) { |
245 // This action changes the selection so we do not reuse existing tabs. | 245 // This action changes the selection so we do not reuse existing tabs. |
246 OpenFileManagerWithInternalActionId(file_path, "select"); | 246 OpenFileManagerWithInternalActionId(file_path, "select"); |
247 } | 247 } |
248 | 248 |
249 } // namespace util | 249 } // namespace util |
250 } // namespace file_manager | 250 } // namespace file_manager |
OLD | NEW |