From 00e3f152083aea092353b3d284c368b48136f33c Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Tue, 20 Oct 2009 19:25:42 +0000 Subject: Convert some structures in webkit/glue to string16. R=yaar BUG=none TEST=none Review URL: http://codereview.chromium.org/305002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29549 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents/tab_contents.cc | 4 ++-- chrome/browser/tab_contents/tab_contents.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/tab_contents') diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index 43c7c27..a5ffec0 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -802,7 +802,7 @@ void TabContents::CreateShortcut() { // effectively cancel the pending install request. pending_install_.page_id = entry->page_id(); pending_install_.icon = GetFavIcon(); - pending_install_.title = UTF16ToWideHack(GetTitle()); + pending_install_.title = GetTitle(); pending_install_.url = GetURL(); if (pending_install_.callback_functor) { pending_install_.callback_functor->Cancel(); @@ -810,7 +810,7 @@ void TabContents::CreateShortcut() { } DCHECK(!pending_install_.icon.isNull()) << "Menu item should be disabled."; if (pending_install_.title.empty()) - pending_install_.title = UTF8ToWide(GetURL().spec()); + pending_install_.title = UTF8ToUTF16(GetURL().spec()); // Request the application info. When done OnDidGetApplicationInfo is invoked // and we'll create the shortcut. diff --git a/chrome/browser/tab_contents/tab_contents.h b/chrome/browser/tab_contents/tab_contents.h index 47b4243..7aa1f7f 100644 --- a/chrome/browser/tab_contents/tab_contents.h +++ b/chrome/browser/tab_contents/tab_contents.h @@ -670,7 +670,7 @@ class TabContents : public PageNavigator, struct PendingInstall { int32 page_id; SkBitmap icon; - std::wstring title; + string16 title; GURL url; // This object receives the GearsCreateShortcutCallback and routes the // message back to the TabContents, if we haven't been deleted. -- cgit v1.1