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

Unified Diff: chrome/installer/util/delete_after_reboot_helper.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
« no previous file with comments | « chrome/installer/gcapi/gcapi_omaha_experiment.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/delete_after_reboot_helper.cc
diff --git a/chrome/installer/util/delete_after_reboot_helper.cc b/chrome/installer/util/delete_after_reboot_helper.cc
index b298d6a21b7272bf5196a9405c26d67925392626..513cd3c3aa8ada78111db4b467e5fc29cb013a15 100644
--- a/chrome/installer/util/delete_after_reboot_helper.cc
+++ b/chrome/installer/util/delete_after_reboot_helper.cc
@@ -330,7 +330,7 @@ bool MatchPendingDeletePath(const base::FilePath& short_form_needle,
// First chomp the prefix since that will mess up GetShortPathName.
std::wstring prefix(L"\\??\\");
- if (StartsWith(match_path, prefix, false))
+ if (base::StartsWith(match_path, prefix, false))
match_path = match_path.substr(4);
// Get the short path name of the entry.
@@ -338,7 +338,8 @@ bool MatchPendingDeletePath(const base::FilePath& short_form_needle,
// Now compare the paths. If it isn't one we're looking for, add it
// to the list to keep.
- return StartsWith(short_match_path.value(), short_form_needle.value(), false);
+ return base::StartsWith(short_match_path.value(), short_form_needle.value(),
+ false);
}
// Removes all pending moves for the given |directory| and any contained
« no previous file with comments | « chrome/installer/gcapi/gcapi_omaha_experiment.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698