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

Unified Diff: chrome/browser/enumerate_modules_model_win.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/enumerate_modules_model_win.cc
diff --git a/chrome/browser/enumerate_modules_model_win.cc b/chrome/browser/enumerate_modules_model_win.cc
index 15c53dc689b59cccb8c174bebcacc1b8e2337692..4a23e1ddf37a4f7bcb0721a4dd221cf97e8bb83f 100644
--- a/chrome/browser/enumerate_modules_model_win.cc
+++ b/chrome/browser/enumerate_modules_model_win.cc
@@ -690,7 +690,7 @@ void ModuleEnumerator::CollapsePath(Module* entry) {
for (PathMapping::const_iterator mapping = path_mapping_.begin();
mapping != path_mapping_.end(); ++mapping) {
base::string16 prefix = mapping->first;
- if (StartsWith(location, prefix, false)) {
+ if (base::StartsWith(location, prefix, false)) {
base::string16 new_location = mapping->second +
location.substr(prefix.length() - 1);
size_t length = new_location.length() - mapping->second.length();
@@ -734,8 +734,8 @@ void ModuleEnumerator::MatchAgainstBlacklist() {
// for blacklisting individually. Mark them as suspicious if we haven't
// classified them as bad yet.
if (module->status == NOT_MATCHED || module->status == GOOD) {
- if (StartsWith(module->location, L"%temp%", false) ||
- StartsWith(module->location, L"%tmp%", false)) {
+ if (base::StartsWith(module->location, L"%temp%", false) ||
+ base::StartsWith(module->location, L"%tmp%", false)) {
module->status = SUSPECTED_BAD;
}
}

Powered by Google App Engine
This is Rietveld 408576698