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

Unified Diff: chrome/browser/ui/views/color_chooser_aura.cc

Issue 148223009: Ensure calling Close and set_listener(NULL) on End(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/color_chooser_aura.cc
diff --git a/chrome/browser/ui/views/color_chooser_aura.cc b/chrome/browser/ui/views/color_chooser_aura.cc
index d7bf7eb739a78d3b7ef40576f64c94ecefdd9341..33e926072a59aae02a377d4a6b8957b6a7e5cb7d 100644
--- a/chrome/browser/ui/views/color_chooser_aura.cc
+++ b/chrome/browser/ui/views/color_chooser_aura.cc
@@ -35,7 +35,7 @@ void ColorChooserAura::OnColorChooserDialogClosed() {
}
void ColorChooserAura::End() {
sky 2014/01/29 21:38:27 I'm not clear on the ownership here. Is there a re
Jun Mukai 2014/01/29 21:55:25 WebContentsImpl owns this class, and End() is call
- if (widget_ && widget_->IsVisible()) {
+ if (widget_) {
view_->set_listener(NULL);
widget_->Close();
view_ = NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698