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

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

Issue 24138002: Merge 220639 "ColorChooserWin::End should act like the dialog ha..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 years, 3 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 | chrome/browser/ui/views/color_chooser_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/color_chooser_dialog.cc
===================================================================
--- chrome/browser/ui/views/color_chooser_dialog.cc (revision 222975)
+++ chrome/browser/ui/views/color_chooser_dialog.cc (working copy)
@@ -68,13 +68,13 @@
void ColorChooserDialog::DidCloseDialog(bool chose_color,
SkColor color,
RunState run_state) {
- if (!listener_)
- return;
EndRun(run_state);
CopyCustomColors(custom_colors_, g_custom_colors);
- if (chose_color)
- listener_->OnColorChosen(color);
- listener_->OnColorChooserDialogClosed();
+ if (listener_) {
+ if (chose_color)
+ listener_->OnColorChosen(color);
+ listener_->OnColorChooserDialogClosed();
+ }
}
void ColorChooserDialog::CopyCustomColors(COLORREF* src, COLORREF* dst) {
« no previous file with comments | « no previous file | chrome/browser/ui/views/color_chooser_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698