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

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

Issue 1550593002: Switch to standard integer types in chrome/browser/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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_finder_impl.h" 5 #include "chrome/browser/media_galleries/fileapi/iapps_finder_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "build/build_config.h"
9 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
10 11
11 namespace iapps { 12 namespace iapps {
12 13
13 namespace { 14 namespace {
14 15
15 void PostResultToUIThread(storage_monitor::StorageInfo::Type type, 16 void PostResultToUIThread(storage_monitor::StorageInfo::Type type,
16 const IAppsFinderCallback& callback, 17 const IAppsFinderCallback& callback,
17 const std::string& unique_id) { 18 const std::string& unique_id) {
18 DCHECK_CURRENTLY_ON(content::BrowserThread::FILE); 19 DCHECK_CURRENTLY_ON(content::BrowserThread::FILE);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 84
84 // |unique_id| is the path to the library XML file at the library root. 85 // |unique_id| is the path to the library XML file at the library root.
85 base::FilePath library_root = 86 base::FilePath library_root =
86 base::FilePath::FromUTF8Unsafe(unique_id).DirName(); 87 base::FilePath::FromUTF8Unsafe(unique_id).DirName();
87 return (path == library_root) || 88 return (path == library_root) ||
88 (path == library_root.AppendASCII("iTunes Media")) || 89 (path == library_root.AppendASCII("iTunes Media")) ||
89 (path == library_root.AppendASCII("iTunes Media").AppendASCII("Music")); 90 (path == library_root.AppendASCII("iTunes Media").AppendASCII("Music"));
90 } 91 }
91 92
92 } // namespace iapps 93 } // namespace iapps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698