Index: chrome/browser/ui/views/create_application_shortcut_view.cc |
=================================================================== |
--- chrome/browser/ui/views/create_application_shortcut_view.cc (revision 159076) |
+++ chrome/browser/ui/views/create_application_shortcut_view.cc (working copy) |
@@ -400,15 +400,16 @@ |
void CreateApplicationShortcutView::ButtonPressed(views::Button* sender, |
const ui::Event& event) { |
- if (sender == desktop_check_box_) |
+ if (sender == desktop_check_box_) { |
profile_->GetPrefs()->SetBoolean(prefs::kWebAppCreateOnDesktop, |
- desktop_check_box_->checked() ? true : false); |
- else if (sender == menu_check_box_) |
+ desktop_check_box_->checked()); |
+ } else if (sender == menu_check_box_) { |
profile_->GetPrefs()->SetBoolean(prefs::kWebAppCreateInAppsMenu, |
- menu_check_box_->checked() ? true : false); |
- else if (sender == quick_launch_check_box_) |
+ menu_check_box_->checked()); |
+ } else if (sender == quick_launch_check_box_) { |
profile_->GetPrefs()->SetBoolean(prefs::kWebAppCreateInQuickLaunchBar, |
- quick_launch_check_box_->checked() ? true : false); |
+ quick_launch_check_box_->checked()); |
+ } |
// When no checkbox is checked we should not have the action button enabled. |
GetDialogClientView()->UpdateDialogButtons(); |