Index: chrome/browser/ui/app_list/start_page_service.cc |
diff --git a/chrome/browser/ui/app_list/start_page_service.cc b/chrome/browser/ui/app_list/start_page_service.cc |
index 833d3bbe58e9c59f13c303182049a4f73b8fe120..98e5562854173e8b5d5633d9731971be25a67408 100644 |
--- a/chrome/browser/ui/app_list/start_page_service.cc |
+++ b/chrome/browser/ui/app_list/start_page_service.cc |
@@ -558,11 +558,8 @@ void StartPageService::UnloadContents() { |
} |
void StartPageService::FetchDoodleJson() { |
- // SetPathStr() requires its argument to stay in scope as long as |
- // |replacements| is, so a std::string is needed, instead of a char*. |
- std::string path = kDoodleJsonPath; |
GURL::Replacements replacements; |
- replacements.SetPathStr(path); |
+ replacements.SetPathStr(kDoodleJsonPath); |
GURL google_base_url(UIThreadSearchTermsData(profile_).GoogleBaseURLValue()); |
GURL doodle_url = google_base_url.ReplaceComponents(replacements); |