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

Unified Diff: chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc

Issue 7012005: Revert "Revert 84829 - Initial implementation of "Synced Bookmarks" folder." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory allocation of gtk iterator Created 9 years, 7 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
Index: chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc
diff --git a/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc b/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc
index 2d39eac10b9a7f78a2e2d4710ff03c1cb1eea78c..84792d45194785bf26a6d5dfdb959ab76f61515b 100644
--- a/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc
+++ b/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc
@@ -330,7 +330,7 @@ void BookmarkEditorGtk::Init(GtkWindow* parent_window) {
G_CALLBACK(OnTreeViewButtonPressEventThunk), this);
GtkTreePath* path = NULL;
- if (selected_id) {
+ if (selected_id && selected_iter.user_data != NULL) {
Elliot Glaysher 2011/05/18 23:51:42 I don't understand this modified line. I don't see
Yaron 2011/05/19 00:05:14 It gets set within bookmark_utils::AddToTreeStore
path = gtk_tree_model_get_path(GTK_TREE_MODEL(tree_store_),
&selected_iter);
} else {

Powered by Google App Engine
This is Rietveld 408576698