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

Unified Diff: chrome/browser/media_galleries/fileapi/media_file_system_backend.cc

Issue 1172183002: Move StartsWith[ASCII] to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util3
Patch Set: merger Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media_galleries/fileapi/media_file_system_backend.cc
diff --git a/chrome/browser/media_galleries/fileapi/media_file_system_backend.cc b/chrome/browser/media_galleries/fileapi/media_file_system_backend.cc
index b7f629c0f13f881ac3e50ca30066c8ecea5fd9eb..5c65f96f720485d93287faa446771b4a9fd67c1d 100644
--- a/chrome/browser/media_galleries/fileapi/media_file_system_backend.cc
+++ b/chrome/browser/media_galleries/fileapi/media_file_system_backend.cc
@@ -91,9 +91,8 @@ void AttemptAutoMountOnUIThread(
MediaFileSystemBackend::ConstructMountName(
profile->GetPath(), storage_domain, kInvalidMediaGalleryPrefId);
MediaGalleryPrefId pref_id = kInvalidMediaGalleryPrefId;
- if (extension &&
- extension->id() == storage_domain &&
- StartsWithASCII(mount_point, expected_mount_prefix, true) &&
+ if (extension && extension->id() == storage_domain &&
+ base::StartsWithASCII(mount_point, expected_mount_prefix, true) &&
base::StringToUint64(mount_point.substr(expected_mount_prefix.size()),
&pref_id) &&
pref_id != kInvalidMediaGalleryPrefId) {
@@ -197,7 +196,7 @@ bool MediaFileSystemBackend::AttemptAutoMountForURLRequest(
if (components.empty())
return false;
std::string mount_point = base::FilePath(components[0]).AsUTF8Unsafe();
- if (!StartsWithASCII(mount_point, kMediaGalleryMountPrefix, true))
+ if (!base::StartsWithASCII(mount_point, kMediaGalleryMountPrefix, true))
return false;
const content::ResourceRequestInfo* request_info =
« no previous file with comments | « chrome/browser/media/webrtc_browsertest_common.cc ('k') | chrome/browser/media_galleries/fileapi/native_media_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698