| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/views/options/content_page_view.h" | 5 #include "chrome/browser/views/options/content_page_view.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shlobj.h> | 8 #include <shlobj.h> |
| 9 #include <vsstyle.h> | 9 #include <vsstyle.h> |
| 10 #include <vssym32.h> | 10 #include <vssym32.h> |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 ask_to_save_form_autofill_.SetValue(enabled); | 115 ask_to_save_form_autofill_.SetValue(enabled); |
| 116 } else if (sender == show_passwords_button_) { | 116 } else if (sender == show_passwords_button_) { |
| 117 UserMetricsRecordAction( | 117 UserMetricsRecordAction( |
| 118 UserMetricsAction("Options_ShowPasswordsExceptions"), NULL); | 118 UserMetricsAction("Options_ShowPasswordsExceptions"), NULL); |
| 119 PasswordsExceptionsWindowView::Show(profile()); | 119 PasswordsExceptionsWindowView::Show(profile()); |
| 120 } else if (sender == change_autofill_settings_button_) { | 120 } else if (sender == change_autofill_settings_button_) { |
| 121 // This button should be disabled if we lack PersonalDataManager. | 121 // This button should be disabled if we lack PersonalDataManager. |
| 122 DCHECK(profile()->GetPersonalDataManager()); | 122 DCHECK(profile()->GetPersonalDataManager()); |
| 123 ShowAutoFillDialog(GetWindow()->GetNativeWindow(), | 123 ShowAutoFillDialog(GetWindow()->GetNativeWindow(), |
| 124 profile()->GetPersonalDataManager(), | 124 profile()->GetPersonalDataManager(), |
| 125 profile()); | 125 profile(), |
| 126 NULL, |
| 127 NULL); |
| 126 } else if (sender == themes_reset_button_) { | 128 } else if (sender == themes_reset_button_) { |
| 127 UserMetricsRecordAction(UserMetricsAction("Options_ThemesReset"), | 129 UserMetricsRecordAction(UserMetricsAction("Options_ThemesReset"), |
| 128 profile()->GetPrefs()); | 130 profile()->GetPrefs()); |
| 129 profile()->ClearTheme(); | 131 profile()->ClearTheme(); |
| 130 } else if (sender == import_button_) { | 132 } else if (sender == import_button_) { |
| 131 views::Window::CreateChromeWindow( | 133 views::Window::CreateChromeWindow( |
| 132 GetWindow()->GetNativeWindow(), | 134 GetWindow()->GetNativeWindow(), |
| 133 gfx::Rect(), | 135 gfx::Rect(), |
| 134 new ImporterView(profile(), importer::ALL))->Show(); | 136 new ImporterView(profile(), importer::ALL))->Show(); |
| 135 } else if (sender == sync_start_stop_button_) { | 137 } else if (sender == sync_start_stop_button_) { |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 sync_action_link_->SetVisible(!link_label.empty()); | 497 sync_action_link_->SetVisible(!link_label.empty()); |
| 496 | 498 |
| 497 if (status_has_error) { | 499 if (status_has_error) { |
| 498 sync_status_label_->set_background(CreateErrorBackground()); | 500 sync_status_label_->set_background(CreateErrorBackground()); |
| 499 sync_action_link_->set_background(CreateErrorBackground()); | 501 sync_action_link_->set_background(CreateErrorBackground()); |
| 500 } else { | 502 } else { |
| 501 sync_status_label_->set_background(NULL); | 503 sync_status_label_->set_background(NULL); |
| 502 sync_action_link_->set_background(NULL); | 504 sync_action_link_->set_background(NULL); |
| 503 } | 505 } |
| 504 } | 506 } |
| OLD | NEW |