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/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "chrome/browser/autofill/password_generator.h" | 8 #include "chrome/browser/autofill/password_generator.h" |
9 #include "chrome/browser/password_manager/password_manager.h" | 9 #include "chrome/browser/password_manager/password_manager.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 password_generator_->Generate().c_str()); | 140 password_generator_->Generate().c_str()); |
141 actions_.password_regenerated = true; | 141 actions_.password_regenerated = true; |
142 } | 142 } |
143 | 143 |
144 void PasswordGenerationBubbleGtk::OnPasswordEdited(GtkWidget* widget) { | 144 void PasswordGenerationBubbleGtk::OnPasswordEdited(GtkWidget* widget) { |
145 actions_.password_edited = true; | 145 actions_.password_edited = true; |
146 } | 146 } |
147 | 147 |
148 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) { | 148 void PasswordGenerationBubbleGtk::OnLearnMoreLinkClicked(GtkButton* button) { |
149 actions_.learn_more_visited = true; | 149 actions_.learn_more_visited = true; |
150 Browser* browser = browser::FindBrowserWithWebContents(web_contents_); | 150 Browser* browser = chrome::FindBrowserWithWebContents(web_contents_); |
151 content::OpenURLParams params( | 151 content::OpenURLParams params( |
152 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(), | 152 GURL(chrome::kAutoPasswordGenerationLearnMoreURL), content::Referrer(), |
153 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false); | 153 NEW_FOREGROUND_TAB, content::PAGE_TRANSITION_LINK, false); |
154 browser->OpenURL(params); | 154 browser->OpenURL(params); |
155 bubble_->Close(); | 155 bubble_->Close(); |
156 } | 156 } |
OLD | NEW |