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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc

Issue 7915008: wstring: convert all SetPageTitle APIs to use string16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months 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/views/tab_contents/native_tab_contents_view_gtk.cc
diff --git a/chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc b/chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc
index f0566e65698a2da547373012178c48c81590bcfc..6e8e6c2d5db639f5dc4dafcb431808aeb306ac5c 100644
--- a/chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc
+++ b/chrome/browser/ui/views/tab_contents/native_tab_contents_view_gtk.cc
@@ -147,11 +147,11 @@ gfx::NativeWindow NativeTabContentsViewGtk::GetTopLevelNativeWindow() const {
return window ? GTK_WINDOW(window) : NULL;
}
-void NativeTabContentsViewGtk::SetPageTitle(const std::wstring& title) {
+void NativeTabContentsViewGtk::SetPageTitle(const string16& title) {
// Set the window name to include the page title so it's easier to spot
// when debugging (e.g. via xwininfo -tree).
if (GDK_IS_WINDOW(GetNativeView()->window))
- gdk_window_set_title(GetNativeView()->window, WideToUTF8(title).c_str());
+ gdk_window_set_title(GetNativeView()->window, UTF16ToUTF8(title).c_str());
}
void NativeTabContentsViewGtk::StartDragging(const WebDropData& drop_data,

Powered by Google App Engine
This is Rietveld 408576698