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

Unified Diff: chrome/browser/debugger/debugger_node.cc

Issue 39022: Convert NavigationEntry title to string16. TabContents::GetTitle no longer ne... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
« no previous file with comments | « chrome/browser/debugger/debugger_host_impl.cpp ('k') | chrome/browser/memory_details.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/debugger/debugger_node.cc
===================================================================
--- chrome/browser/debugger/debugger_node.cc (revision 10809)
+++ chrome/browser/debugger/debugger_node.cc (working copy)
@@ -201,7 +201,7 @@
if (b != NULL) {
if (prop->Equals(v8::String::New("title"))) {
const TabContents *t = b->GetSelectedTabContents();
- std::wstring title = t->GetTitle();
+ std::wstring title = UTF16ToWideHack(t->GetTitle());
std::string title2 = WideToUTF8(title);
return v8::String::New(title2.c_str());
} else if (prop->Equals(v8::String::New("tab"))) {
@@ -359,7 +359,7 @@
if (t != NULL) {
WebContents* web = t->AsWebContents();
if (prop->Equals(v8::String::New("title"))) {
- std::wstring title = t->GetTitle();
+ std::wstring title = UTF16ToWideHack(t->GetTitle());
std::string title2 = WideToUTF8(title);
return v8::String::New(title2.c_str());
} else if (web) {
« no previous file with comments | « chrome/browser/debugger/debugger_host_impl.cpp ('k') | chrome/browser/memory_details.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698