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

Side by Side Diff: chrome/browser/gtk/bookmark_bubble_gtk.cc

Issue 1795007: Get rid of BookmarkEditor::Show()'s BookmarkEditor::Handler argument. (Closed)
Patch Set: baz Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // Closing might delete us, so we'll cache what we need on the stack. 382 // Closing might delete us, so we'll cache what we need on the stack.
383 Profile* profile = profile_; 383 Profile* profile = profile_;
384 GtkWindow* toplevel = GTK_WINDOW(gtk_widget_get_toplevel(anchor_)); 384 GtkWindow* toplevel = GTK_WINDOW(gtk_widget_get_toplevel(anchor_));
385 385
386 // Close the bubble, deleting the C++ objects, etc. 386 // Close the bubble, deleting the C++ objects, etc.
387 bubble_->Close(); 387 bubble_->Close();
388 388
389 if (node) { 389 if (node) {
390 BookmarkEditor::Show(toplevel, profile, NULL, 390 BookmarkEditor::Show(toplevel, profile, NULL,
391 BookmarkEditor::EditDetails(node), 391 BookmarkEditor::EditDetails(node),
392 BookmarkEditor::SHOW_TREE, NULL); 392 BookmarkEditor::SHOW_TREE);
393 } 393 }
394 } 394 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698