OLD | NEW |
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/file_manager/open_with_browser.h" | 5 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/command_line.h" | 10 #include "base/command_line.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
10 #include "base/path_service.h" | 13 #include "base/path_service.h" |
11 #include "base/threading/sequenced_worker_pool.h" | 14 #include "base/threading/sequenced_worker_pool.h" |
12 #include "chrome/browser/browser_process.h" | 15 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" | 16 #include "chrome/browser/chromeos/file_manager/filesystem_api_util.h" |
14 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" | 17 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" |
15 #include "chrome/browser/plugins/plugin_prefs.h" | 18 #include "chrome/browser/plugins/plugin_prefs.h" |
16 #include "chrome/browser/profiles/profile_manager.h" | 19 #include "chrome/browser/profiles/profile_manager.h" |
17 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" | 20 #include "chrome/browser/ui/ash/multi_user/multi_user_util.h" |
18 #include "chrome/browser/ui/browser.h" | 21 #include "chrome/browser/ui/browser.h" |
19 #include "chrome/browser/ui/browser_tabstrip.h" | 22 #include "chrome/browser/ui/browser_tabstrip.h" |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 base::FilePath::FromUTF8Unsafe("dummy").AddExtension(file_extension); | 194 base::FilePath::FromUTF8Unsafe("dummy").AddExtension(file_extension); |
192 if (file_path.MatchesExtension(kPdfExtension)) | 195 if (file_path.MatchesExtension(kPdfExtension)) |
193 return IsPdfPluginEnabled(profile); | 196 return IsPdfPluginEnabled(profile); |
194 if (file_path.MatchesExtension(kSwfExtension)) | 197 if (file_path.MatchesExtension(kSwfExtension)) |
195 return IsFlashPluginEnabled(profile); | 198 return IsFlashPluginEnabled(profile); |
196 return false; | 199 return false; |
197 } | 200 } |
198 | 201 |
199 } // namespace util | 202 } // namespace util |
200 } // namespace file_manager | 203 } // namespace file_manager |
OLD | NEW |