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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

Issue 112913004: Update some uses of UTF conversions in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/ui/cocoa/omnibox/omnibox_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
index 08a501e7b4b9f977327551f453b94f9f949a369d..95bacdd45de4ba73ed3315ff9cd0c2efef2eb9f5 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
@@ -276,7 +276,7 @@ void OmniboxViewMac::SetForcedQuery() {
const base::string16 current_text(GetText());
const size_t start = current_text.find_first_not_of(base::kWhitespaceUTF16);
if (start == base::string16::npos || (current_text[start] != '?')) {
- SetUserText(ASCIIToUTF16("?"));
+ SetUserText(base::ASCIIToUTF16("?"));
} else {
NSRange range = NSMakeRange(start + 1, current_text.size() - start - 1);
[[field_ currentEditor] setSelectedRange:range];
@@ -442,7 +442,7 @@ void OmniboxViewMac::ApplyTextAttributes(const base::string16& display_text,
AutocompleteInput::ParseForEmphasizeComponents(
display_text, &scheme, &host);
bool grey_out_url = display_text.substr(scheme.begin, scheme.len) ==
- UTF8ToUTF16(extensions::kExtensionScheme);
+ base::UTF8ToUTF16(extensions::kExtensionScheme);
if (model()->CurrentTextIsURL() &&
(host.is_nonempty() || grey_out_url)) {
[as addAttribute:NSForegroundColorAttributeName value:BaseTextColor()

Powered by Google App Engine
This is Rietveld 408576698