OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/gtk/password_generation_bubble_gtk.h" | 5 #include "chrome/browser/ui/gtk/password_generation_bubble_gtk.h" |
6 | 6 |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chrome/browser/password_manager/password_manager.h" | 8 #include "chrome/browser/password_manager/password_manager.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
12 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" | 12 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" |
13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" | 13 #include "chrome/browser/ui/gtk/gtk_chrome_link_button.h" |
14 #include "chrome/browser/ui/gtk/gtk_theme_service.h" | 14 #include "chrome/browser/ui/gtk/gtk_theme_service.h" |
15 #include "chrome/browser/ui/gtk/gtk_util.h" | 15 #include "chrome/browser/ui/gtk/gtk_util.h" |
16 #include "chrome/common/url_constants.h" | 16 #include "chrome/common/url_constants.h" |
17 #include "components/autofill/browser/password_generator.h" | 17 #include "components/autofill/browser/password_generator.h" |
18 #include "components/autofill/common/autofill_messages.h" | 18 #include "components/autofill/core/common/autofill_messages.h" |
19 #include "content/public/browser/render_view_host.h" | 19 #include "content/public/browser/render_view_host.h" |
20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
21 #include "content/public/browser/web_contents_view.h" | 21 #include "content/public/browser/web_contents_view.h" |
22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
23 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources.h" |
24 #include "ui/base/gtk/gtk_hig_constants.h" | 24 #include "ui/base/gtk/gtk_hig_constants.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/base/resource/resource_bundle.h" | 26 #include "ui/base/resource/resource_bundle.h" |
27 | 27 |
28 using content::RenderViewHost; | 28 using content::RenderViewHost; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) { | 151 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) { |
152 actions_.learn_more_visited = true; | 152 actions_.learn_more_visited = true; |
153 Browser* browser = chrome::FindBrowserWithWebContents(web_contents_); | 153 Browser* browser = chrome::FindBrowserWithWebContents(web_contents_); |
154 content::OpenURLParams params( | 154 content::OpenURLParams params( |
155 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(), | 155 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(), |
156 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false); | 156 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false); |
157 browser->OpenURL(params); | 157 browser->OpenURL(params); |
158 bubble_->Close(); | 158 bubble_->Close(); |
159 } | 159 } |
OLD | NEW |