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/media_galleries/fileapi/iapps_finder_impl.h" | 5 #include "chrome/browser/media_galleries/fileapi/iapps_finder_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base_paths_win.h" | 9 #include "base/base_paths_win.h" |
10 #include "base/file_util.h" | |
11 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/path_service.h" | 13 #include "base/path_service.h" |
14 #include "chrome/browser/media_galleries/fileapi/iapps_finder.h" | 14 #include "chrome/browser/media_galleries/fileapi/iapps_finder.h" |
15 #include "chrome/browser/media_galleries/fileapi/safe_itunes_pref_parser_win.h" | 15 #include "chrome/browser/media_galleries/fileapi/safe_itunes_pref_parser_win.h" |
16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
17 #include "components/storage_monitor/storage_info.h" | 17 #include "components/storage_monitor/storage_info.h" |
18 #include "content/public/browser/browser_thread.h" | 18 #include "content/public/browser/browser_thread.h" |
19 | 19 |
20 namespace iapps { | 20 namespace iapps { |
21 | 21 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 // The Windows-specific ITunesFinder uses a utility process to parse the | 88 // The Windows-specific ITunesFinder uses a utility process to parse the |
89 // iTunes preferences XML file if it exists. If not or if the parsing fails, | 89 // iTunes preferences XML file if it exists. If not or if the parsing fails, |
90 // ITunesFinderWin will try a default location as well. | 90 // ITunesFinderWin will try a default location as well. |
91 void FindITunesLibrary(const IAppsFinderCallback& callback) { | 91 void FindITunesLibrary(const IAppsFinderCallback& callback) { |
92 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); | 92 DCHECK_CURRENTLY_ON(content::BrowserThread::UI); |
93 FindIAppsOnFileThread(storage_monitor::StorageInfo::ITUNES, | 93 FindIAppsOnFileThread(storage_monitor::StorageInfo::ITUNES, |
94 base::Bind(FindITunesLibraryOnFileThread), callback); | 94 base::Bind(FindITunesLibraryOnFileThread), callback); |
95 } | 95 } |
96 | 96 |
97 } // namespace iapps | 97 } // namespace iapps |
OLD | NEW |