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

Unified Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 1220963005: Update base::StartsWith calls to new form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@starts_with
Patch Set: 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/web_applications/web_app_mac.mm
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm
index d6f47a67718d06b34615de4182387ced4210623a..89cad0e604c2ea007771847851efd7e679851e1a 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -212,10 +212,10 @@ bool HasSameUserDataDir(const base::FilePath& bundle_path) {
base::FilePath user_data_dir;
PathService::Get(chrome::DIR_USER_DATA, &user_data_dir);
DCHECK(!user_data_dir.empty());
- return base::StartsWithASCII(
+ return base::StartsWith(
base::SysNSStringToUTF8(
[plist valueForKey:app_mode::kCrAppModeUserDataDirKey]),
- user_data_dir.value(), true /* case_sensitive */);
+ user_data_dir.value(), base::CompareCase::SENSITIVE);
}
void LaunchShimOnFileThread(scoped_ptr<web_app::ShortcutInfo> shortcut_info,
@@ -453,7 +453,8 @@ void DeletePathAndParentIfEmpty(const base::FilePath& app_path) {
bool IsShimForProfile(const base::FilePath& base_name,
const std::string& profile_base_name) {
- if (!base::StartsWithASCII(base_name.value(), profile_base_name, true))
+ if (!base::StartsWith(base_name.value(), profile_base_name,
+ base::CompareCase::SENSITIVE))
return false;
if (base_name.Extension() != ".app")

Powered by Google App Engine
This is Rietveld 408576698