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

Unified Diff: chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration_unittest.mm

Issue 5959008: Remove wstring from l10n_util. Part 2.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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/location_bar/keyword_hint_decoration_unittest.mm
===================================================================
--- chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration_unittest.mm (revision 70233)
+++ chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration_unittest.mm (working copy)
@@ -6,6 +6,7 @@
#import "chrome/browser/ui/cocoa/location_bar/keyword_hint_decoration.h"
+#include "base/utf_string_conversions.h"
#import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -22,7 +23,7 @@
TEST_F(KeywordHintDecorationTest, GetWidthForSpace) {
decoration_.SetVisible(true);
- decoration_.SetKeyword(std::wstring(L"Google"), false);
+ decoration_.SetKeyword(ASCIIToUTF16("google"), false);
const CGFloat kVeryWide = 1000.0;
const CGFloat kFairlyWide = 100.0; // Estimate for full hint space.

Powered by Google App Engine
This is Rietveld 408576698