From 790e2fdbb6ca0ce407b4af36584442ee3dd41243 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 21 Sep 2011 20:28:23 +0000 Subject: wstring: convert all SetPageTitle APIs to use string16 BUG=23581 Review URL: http://codereview.chromium.org/7915008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102157 0039d316-1c4b-4281-b951-d872f2087c98 --- content/browser/tab_contents/tab_contents.cc | 2 +- content/browser/tab_contents/tab_contents_view.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'content/browser/tab_contents') diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc index c3f1396..287e661 100644 --- a/content/browser/tab_contents/tab_contents.cc +++ b/content/browser/tab_contents/tab_contents.cc @@ -1377,7 +1377,7 @@ bool TabContents::UpdateTitleForEntry(NavigationEntry* entry, } // Lastly, set the title for the view. - view_->SetPageTitle(UTF16ToWideHack(final_title)); + view_->SetPageTitle(final_title); TitleUpdatedDetails details(entry, explicit_set); diff --git a/content/browser/tab_contents/tab_contents_view.h b/content/browser/tab_contents/tab_contents_view.h index 8134ac5..05da7c6 100644 --- a/content/browser/tab_contents/tab_contents_view.h +++ b/content/browser/tab_contents/tab_contents_view.h @@ -64,7 +64,7 @@ class CONTENT_EXPORT TabContentsView : public RenderViewHostDelegate::View { // is not strictly necessary and isn't expected to be displayed anywhere, but // can aid certain debugging tools such as Spy++ on Windows where you are // trying to find a specific window. - virtual void SetPageTitle(const std::wstring& title) = 0; + virtual void SetPageTitle(const string16& title) = 0; // Used to notify the view that a tab has crashed so each platform can // prepare the sad tab. -- cgit v1.1