| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index 065057e7ea6ccc998d2e63b341e8fd9f2cbf0e31..33f8dc04212bdd2ddc0dce915c31da946fb40887 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -463,16 +463,16 @@ bool RemoveUberHost(GURL* url) {
|
| if (url->path().empty() || url->path() == "/")
|
| return false;
|
|
|
| - const std::string old_path = url->path();
|
| + const base::StringPiece old_path = url->path();
|
|
|
| const std::string::size_type separator = old_path.find('/', 1);
|
| std::string new_host;
|
| std::string new_path;
|
| if (separator == std::string::npos) {
|
| - new_host = old_path.substr(1);
|
| + new_host = old_path.substr(1).as_string();
|
| } else {
|
| - new_host = old_path.substr(1, separator - 1);
|
| - new_path = old_path.substr(separator);
|
| + new_host = old_path.substr(1, separator - 1).as_string();
|
| + new_path = old_path.substr(separator).as_string();
|
| }
|
|
|
| // Do not allow URLs with paths empty before the first slash since we can't
|
|
|