Index: components/search_engines/search_terms_data.cc |
diff --git a/components/search_engines/search_terms_data.cc b/components/search_engines/search_terms_data.cc |
index b1e9ed323cf49e2c969a5008f2fb3d03bc438765..da2713968603f061c972311024c8a997a4602d29 100644 |
--- a/components/search_engines/search_terms_data.cc |
+++ b/components/search_engines/search_terms_data.cc |
@@ -26,11 +26,7 @@ std::string SearchTermsData::GoogleBaseSuggestURLValue() const { |
GURL::Replacements repl; |
// Replace any existing path with "/complete/". |
- // SetPathStr() requires its argument to stay in scope as long as |repl| is, |
- // so "/complete/" can't be passed to SetPathStr() directly, it needs to be in |
- // a variable. |
- const std::string suggest_path("/complete/"); |
- repl.SetPathStr(suggest_path); |
+ repl.SetPathStr("/complete/"); |
// Clear the query and ref. |
repl.ClearQuery(); |