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

Side by Side Diff: chrome/browser/gtk/bookmark_bubble_gtk.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/gtk/bookmark_bubble_gtk.h" 5 #include "chrome/browser/gtk/bookmark_bubble_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 331
332 void BookmarkBubbleGtk::InitFolderComboModel() { 332 void BookmarkBubbleGtk::InitFolderComboModel() {
333 folder_combo_model_.reset(new RecentlyUsedFoldersComboModel( 333 folder_combo_model_.reset(new RecentlyUsedFoldersComboModel(
334 profile_->GetBookmarkModel(), 334 profile_->GetBookmarkModel(),
335 profile_->GetBookmarkModel()->GetMostRecentlyAddedNodeForURL(url_))); 335 profile_->GetBookmarkModel()->GetMostRecentlyAddedNodeForURL(url_)));
336 336
337 // We always have nodes + 1 entries in the combo. The last entry will be 337 // We always have nodes + 1 entries in the combo. The last entry will be
338 // the 'Select another folder...' entry that opens the bookmark editor. 338 // the 'Select another folder...' entry that opens the bookmark editor.
339 for (int i = 0; i < folder_combo_model_->GetItemCount(); ++i) { 339 for (int i = 0; i < folder_combo_model_->GetItemCount(); ++i) {
340 gtk_combo_box_append_text(GTK_COMBO_BOX(folder_combo_), 340 gtk_combo_box_append_text(GTK_COMBO_BOX(folder_combo_),
341 WideToUTF8(folder_combo_model_->GetItemAt(i)).c_str()); 341 UTF16ToUTF8(folder_combo_model_->GetItemAt(i)).c_str());
342 } 342 }
343 343
344 gtk_combo_box_set_active(GTK_COMBO_BOX(folder_combo_), 344 gtk_combo_box_set_active(GTK_COMBO_BOX(folder_combo_),
345 folder_combo_model_->node_parent_index()); 345 folder_combo_model_->node_parent_index());
346 } 346 }
OLDNEW
« no previous file with comments | « chrome/browser/default_encoding_combo_model.cc ('k') | chrome/browser/gtk/options/content_exception_editor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698