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 #include "chrome/browser/views/autofill_profiles_view_win.h" | 4 #include "chrome/browser/views/autofill_profiles_view_win.h" |
5 | 5 |
6 #include <vsstyle.h> | 6 #include <vsstyle.h> |
7 #include <vssym32.h> | 7 #include <vssym32.h> |
8 | 8 |
9 #include "app/gfx/canvas.h" | |
10 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
11 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
12 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
13 #include "chrome/browser/browser.h" | 12 #include "chrome/browser/browser.h" |
14 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
15 #include "chrome/browser/browser_window.h" | 14 #include "chrome/browser/browser_window.h" |
16 #include "chrome/browser/pref_service.h" | 15 #include "chrome/browser/pref_service.h" |
17 #include "chrome/browser/profile.h" | 16 #include "chrome/browser/profile.h" |
18 #include "chrome/browser/theme_resources_util.h" | 17 #include "chrome/browser/theme_resources_util.h" |
19 #include "chrome/browser/window_sizer.h" | 18 #include "chrome/browser/window_sizer.h" |
20 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "gfx/canvas.h" |
21 #include "gfx/native_theme_win.h" | 21 #include "gfx/native_theme_win.h" |
22 #include "gfx/size.h" | 22 #include "gfx/size.h" |
23 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
24 #include "grit/locale_settings.h" | 24 #include "grit/locale_settings.h" |
25 #include "views/border.h" | 25 #include "views/border.h" |
26 #include "views/controls/button/image_button.h" | 26 #include "views/controls/button/image_button.h" |
27 #include "views/controls/button/native_button.h" | 27 #include "views/controls/button/native_button.h" |
28 #include "views/controls/label.h" | 28 #include "views/controls/label.h" |
29 #include "views/controls/scroll_view.h" | 29 #include "views/controls/scroll_view.h" |
30 #include "views/controls/separator.h" | 30 #include "views/controls/separator.h" |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1165 // It's possible we haven't shown the InfoBar yet, but if the user is in the | 1165 // It's possible we haven't shown the InfoBar yet, but if the user is in the |
1166 // AutoFill dialog, she doesn't need to be asked to enable or disable | 1166 // AutoFill dialog, she doesn't need to be asked to enable or disable |
1167 // AutoFill. | 1167 // AutoFill. |
1168 profile->GetPrefs()->SetBoolean(prefs::kAutoFillInfoBarShown, true); | 1168 profile->GetPrefs()->SetBoolean(prefs::kAutoFillInfoBarShown, true); |
1169 | 1169 |
1170 PersonalDataManager* personal_data_manager = | 1170 PersonalDataManager* personal_data_manager = |
1171 profile->GetPersonalDataManager(); | 1171 profile->GetPersonalDataManager(); |
1172 DCHECK(personal_data_manager); | 1172 DCHECK(personal_data_manager); |
1173 AutoFillProfilesView::Show(parent, observer, personal_data_manager); | 1173 AutoFillProfilesView::Show(parent, observer, personal_data_manager); |
1174 } | 1174 } |
OLD | NEW |