summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/omnibox/omnibox_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/omnibox/omnibox_view.cc')
-rw-r--r--chrome/browser/ui/omnibox/omnibox_view.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/ui/omnibox/omnibox_view.cc b/chrome/browser/ui/omnibox/omnibox_view.cc
index 4708d06..1a1dc2a 100644
--- a/chrome/browser/ui/omnibox/omnibox_view.cc
+++ b/chrome/browser/ui/omnibox/omnibox_view.cc
@@ -25,8 +25,10 @@ base::string16 OmniboxView::StripJavascriptSchemas(const base::string16& text) {
const base::string16 kJsPrefix(
base::ASCIIToUTF16(content::kJavaScriptScheme) + base::ASCIIToUTF16(":"));
base::string16 out(text);
- while (StartsWith(out, kJsPrefix, false))
- TrimWhitespace(out.substr(kJsPrefix.length()), TRIM_LEADING, &out);
+ while (StartsWith(out, kJsPrefix, false)) {
+ base::TrimWhitespace(out.substr(kJsPrefix.length()), base::TRIM_LEADING,
+ &out);
+ }
return out;
}