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/gtk/options/passwords_exceptions_window_gtk.h" | 5 #include "chrome/browser/gtk/options/passwords_exceptions_window_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "chrome/browser/browser_process.h" | |
14 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" | 13 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" |
15 #include "chrome/browser/gtk/gtk_util.h" | 14 #include "chrome/browser/gtk/gtk_util.h" |
16 #include "chrome/browser/gtk/options/passwords_exceptions_page_gtk.h" | 15 #include "chrome/browser/gtk/options/passwords_exceptions_page_gtk.h" |
17 #include "chrome/browser/gtk/options/passwords_page_gtk.h" | 16 #include "chrome/browser/gtk/options/passwords_page_gtk.h" |
18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
19 #include "chrome/browser/ui/options/options_window.h" | 18 #include "chrome/browser/ui/options/options_window.h" |
20 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
21 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
22 #include "grit/locale_settings.h" | 21 #include "grit/locale_settings.h" |
23 | 22 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // Factory/finder method: | 136 // Factory/finder method: |
138 | 137 |
139 void ShowPasswordsExceptionsWindow(Profile* profile) { | 138 void ShowPasswordsExceptionsWindow(Profile* profile) { |
140 DCHECK(profile); | 139 DCHECK(profile); |
141 // If there's already an existing passwords and exceptions window, use it. | 140 // If there's already an existing passwords and exceptions window, use it. |
142 if (!passwords_exceptions_window) { | 141 if (!passwords_exceptions_window) { |
143 passwords_exceptions_window = new PasswordsExceptionsWindowGtk(profile); | 142 passwords_exceptions_window = new PasswordsExceptionsWindowGtk(profile); |
144 } | 143 } |
145 passwords_exceptions_window->Show(); | 144 passwords_exceptions_window->Show(); |
146 } | 145 } |
OLD | NEW |