Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: chrome/browser/media_galleries/fileapi/iapps_data_provider.cc

Issue 156703006: Cleanup: Remove unneeded browser_thread.h includes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_data_provider.h" 5 #include "chrome/browser/media_galleries/fileapi/iapps_data_provider.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/format_macros.h" 11 #include "base/format_macros.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/platform_file.h" 14 #include "base/platform_file.h"
15 #include "base/stl_util.h" 15 #include "base/stl_util.h"
16 #include "base/strings/string_util.h" 16 #include "base/strings/string_util.h"
17 #include "base/strings/stringprintf.h" 17 #include "base/strings/stringprintf.h"
18 #include "base/threading/thread_restrictions.h" 18 #include "base/threading/thread_restrictions.h"
19 #include "chrome/browser/media_galleries/fileapi/file_path_watcher_util.h" 19 #include "chrome/browser/media_galleries/fileapi/file_path_watcher_util.h"
20 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" 20 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h"
21 #include "chrome/common/media_galleries/itunes_library.h" 21 #include "chrome/common/media_galleries/itunes_library.h"
22 #include "content/public/browser/browser_thread.h"
23 #include "third_party/icu/source/common/unicode/locid.h" 22 #include "third_party/icu/source/common/unicode/locid.h"
24 #include "webkit/browser/fileapi/native_file_util.h" 23 #include "webkit/browser/fileapi/native_file_util.h"
25 24
26 namespace iapps { 25 namespace iapps {
27 26
28 IAppsDataProvider::IAppsDataProvider(const base::FilePath& library_path) 27 IAppsDataProvider::IAppsDataProvider(const base::FilePath& library_path)
29 : library_path_(library_path), 28 : library_path_(library_path),
30 needs_refresh_(true), 29 needs_refresh_(true),
31 is_valid_(false), 30 is_valid_(false),
32 weak_factory_(this) { 31 weak_factory_(this) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void IAppsDataProvider::OnLibraryChanged(const base::FilePath& path, 75 void IAppsDataProvider::OnLibraryChanged(const base::FilePath& path,
77 bool error) { 76 bool error) {
78 DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread()); 77 DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread());
79 DCHECK_EQ(library_path_.value(), path.value()); 78 DCHECK_EQ(library_path_.value(), path.value());
80 if (error) 79 if (error)
81 LOG(ERROR) << "Error watching " << library_path_.value(); 80 LOG(ERROR) << "Error watching " << library_path_.value();
82 needs_refresh_ = true; 81 needs_refresh_ = true;
83 } 82 }
84 83
85 } // namespace iapps 84 } // namespace iapps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698