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

Side by Side Diff: chrome/browser/views/options/content_page_view.cc

Issue 1952002: AutoFill profile shouldn't be saved when cancelled during initial setup. (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/views/autofill_profiles_view_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/autofill_profiles_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698