| 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/file_tasks.h" | 5 #include "chrome/browser/chromeos/file_manager/file_tasks.h" |
| 6 | 6 |
| 7 #include "apps/launcher.h" | 7 #include "apps/launcher.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/common/extensions/api/file_browser_private.h" | 26 #include "chrome/common/extensions/api/file_browser_private.h" |
| 27 #include "chrome/common/extensions/extension_constants.h" | 27 #include "chrome/common/extensions/extension_constants.h" |
| 28 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" |
| 29 #include "chromeos/chromeos_switches.h" | 29 #include "chromeos/chromeos_switches.h" |
| 30 #include "extensions/browser/extension_host.h" | 30 #include "extensions/browser/extension_host.h" |
| 31 #include "extensions/browser/extension_registry.h" | 31 #include "extensions/browser/extension_registry.h" |
| 32 #include "extensions/browser/extension_system.h" | 32 #include "extensions/browser/extension_system.h" |
| 33 #include "extensions/browser/extension_util.h" | 33 #include "extensions/browser/extension_util.h" |
| 34 #include "extensions/common/constants.h" | 34 #include "extensions/common/constants.h" |
| 35 #include "extensions/common/extension_set.h" | 35 #include "extensions/common/extension_set.h" |
| 36 #include "webkit/browser/fileapi/file_system_url.h" | 36 #include "storage/browser/fileapi/file_system_url.h" |
| 37 | 37 |
| 38 using extensions::Extension; | 38 using extensions::Extension; |
| 39 using extensions::app_file_handler_util::FindFileHandlersForFiles; | 39 using extensions::app_file_handler_util::FindFileHandlersForFiles; |
| 40 using fileapi::FileSystemURL; | 40 using storage::FileSystemURL; |
| 41 | 41 |
| 42 namespace file_manager { | 42 namespace file_manager { |
| 43 namespace file_tasks { | 43 namespace file_tasks { |
| 44 | 44 |
| 45 namespace { | 45 namespace { |
| 46 | 46 |
| 47 // The values "file" and "app" are confusing, but cannot be changed easily as | 47 // The values "file" and "app" are confusing, but cannot be changed easily as |
| 48 // these are used in default task IDs stored in preferences. | 48 // these are used in default task IDs stored in preferences. |
| 49 const char kFileBrowserHandlerTaskType[] = "file"; | 49 const char kFileBrowserHandlerTaskType[] = "file"; |
| 50 const char kFileHandlerTaskType[] = "app"; | 50 const char kFileHandlerTaskType[] = "app"; |
| (...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 541 DCHECK(!task->is_default()); | 541 DCHECK(!task->is_default()); |
| 542 if (IsFallbackFileHandler(task->task_descriptor())) { | 542 if (IsFallbackFileHandler(task->task_descriptor())) { |
| 543 task->set_is_default(true); | 543 task->set_is_default(true); |
| 544 return; | 544 return; |
| 545 } | 545 } |
| 546 } | 546 } |
| 547 } | 547 } |
| 548 | 548 |
| 549 } // namespace file_tasks | 549 } // namespace file_tasks |
| 550 } // namespace file_manager | 550 } // namespace file_manager |
| OLD | NEW |