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

Unified Diff: chrome/browser/profiles/profile_avatar_icon_util.cc

Issue 2779893005: Continue to clean c_str() calls. (Closed)
Patch Set: Revert changes in font_service_app.cc Created 3 years, 9 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/profiles/profile_avatar_icon_util.cc
diff --git a/chrome/browser/profiles/profile_avatar_icon_util.cc b/chrome/browser/profiles/profile_avatar_icon_util.cc
index dcbf5068e12f6bcf6689181c5e82a9bc3d344fb8..136ffef28d80500efdaef0c9513a58ca2966135e 100644
--- a/chrome/browser/profiles/profile_avatar_icon_util.cc
+++ b/chrome/browser/profiles/profile_avatar_icon_util.cc
@@ -545,7 +545,7 @@ bool GetImageURLWithThumbnailSize(
std::string new_path = old_path.substr(0, pos) + new_size_component +
old_path.substr(end);
GURL::Replacements replacement;
- replacement.SetPathStr(new_path.c_str());
+ replacement.SetPathStr(new_path);
*new_url = old_url.ReplaceComponents(replacement);
return new_url->is_valid();
}
« no previous file with comments | « chrome/browser/prefs/pref_metrics_service.cc ('k') | chrome/browser/supervised_user/experimental/safe_search_url_reporter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698