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

Unified Diff: chrome/browser/views/options/general_page_view.cc

Issue 3159031: Remove wstrings from bookmarks, part 12. (Closed)
Patch Set: rebased ToT 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/views/importer_view.cc ('k') | chrome/browser/views/uninstall_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/options/general_page_view.cc
diff --git a/chrome/browser/views/options/general_page_view.cc b/chrome/browser/views/options/general_page_view.cc
index 1c43f0e618e5cdf3951eb20aa1940bbcbaa371bd..a65e7e82c10aa6f520e899bc268972391d1f3281 100644
--- a/chrome/browser/views/options/general_page_view.cc
+++ b/chrome/browser/views/options/general_page_view.cc
@@ -8,6 +8,7 @@
#include "app/l10n_util.h"
#include "base/callback.h"
#include "base/message_loop.h"
+#include "base/string16.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/custom_home_pages_table_model.h"
@@ -64,7 +65,7 @@ class SearchEngineListModel : public ComboboxModel,
// ComboboxModel overrides:
virtual int GetItemCount();
- virtual std::wstring GetItemAt(int index);
+ virtual string16 GetItemAt(int index);
// Returns the TemplateURL at the specified index.
const TemplateURL* GetTemplateURLAt(int index);
@@ -121,9 +122,9 @@ int SearchEngineListModel::GetItemCount() {
return static_cast<int>(template_urls_.size());
}
-std::wstring SearchEngineListModel::GetItemAt(int index) {
+string16 SearchEngineListModel::GetItemAt(int index) {
DCHECK(index < GetItemCount());
- return template_urls_[index]->short_name();
+ return WideToUTF16Hack(template_urls_[index]->short_name());
}
const TemplateURL* SearchEngineListModel::GetTemplateURLAt(int index) {
« no previous file with comments | « chrome/browser/views/importer_view.cc ('k') | chrome/browser/views/uninstall_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698