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/extensions/file_manager/mime_util.h" | 5 #include "chrome/browser/chromeos/file_manager/mime_util.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "net/base/mime_util.h" | 10 #include "net/base/mime_util.h" |
11 | 11 |
12 namespace file_manager { | 12 namespace file_manager { |
13 namespace util { | 13 namespace util { |
14 | 14 |
15 std::string GetMimeTypeForPath(const base::FilePath& file_path) { | 15 std::string GetMimeTypeForPath(const base::FilePath& file_path) { |
(...skipping 11 matching lines...) Expand all Loading... |
27 // determined, then indicate that it has the empty mime-type. This will | 27 // determined, then indicate that it has the empty mime-type. This will |
28 // only be matched if the Web Intents accepts "*" or "*/*". | 28 // only be matched if the Web Intents accepts "*" or "*/*". |
29 return ""; | 29 return ""; |
30 } else { | 30 } else { |
31 return mime_type; | 31 return mime_type; |
32 } | 32 } |
33 } | 33 } |
34 | 34 |
35 } // namespace util | 35 } // namespace util |
36 } // namespace file_manager | 36 } // namespace file_manager |
OLD | NEW |