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

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

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/browser/ui/webui/ntp/favicon_webui_handler.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 12fd2df18b520ab4970f396159c2b0e3062a4c18..f5c8e8d1e2796c4df75cc8088b143ba350e28703 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -212,11 +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 StartsWithASCII(
+ return base::StartsWithASCII(
base::SysNSStringToUTF8(
[plist valueForKey:app_mode::kCrAppModeUserDataDirKey]),
- user_data_dir.value(),
- true /* case_sensitive */);
+ user_data_dir.value(), true /* case_sensitive */);
}
void LaunchShimOnFileThread(scoped_ptr<web_app::ShortcutInfo> shortcut_info,
@@ -454,7 +453,7 @@ void DeletePathAndParentIfEmpty(const base::FilePath& app_path) {
bool IsShimForProfile(const base::FilePath& base_name,
const std::string& profile_base_name) {
- if (!StartsWithASCII(base_name.value(), profile_base_name, true))
+ if (!base::StartsWithASCII(base_name.value(), profile_base_name, true))
return false;
if (base_name.Extension() != ".app")
« no previous file with comments | « chrome/browser/ui/webui/ntp/favicon_webui_handler.cc ('k') | chrome/common/crash_keys.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698