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

Unified Diff: chrome/browser/browser.cc

Issue 3176024: Convert wstrings in bookmarks, part 4. (Closed)
Patch Set: Created 10 years, 4 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/bookmarks/bookmark_utils.cc ('k') | chrome/browser/views/bookmark_editor_view_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.cc
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index f372e0a3182e4584389af9da95b7868e587f2623..c1f26b7f2bfc938caf235dfceec8dd37be80fee9 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -1491,11 +1491,11 @@ void Browser::BookmarkCurrentPage() {
return; // Ignore requests until bookmarks are loaded.
GURL url;
- std::wstring title;
+ string16 title;
bookmark_utils::GetURLAndTitleToBookmark(GetSelectedTabContents(), &url,
&title);
bool was_bookmarked = model->IsBookmarked(url);
- model->SetURLStarred(url, WideToUTF16Hack(title), true);
+ model->SetURLStarred(url, title, true);
// Make sure the model actually added a bookmark before showing the star. A
// bookmark isn't created if the url is invalid.
if (window_->IsActive() && model->IsBookmarked(url)) {
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/views/bookmark_editor_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698