| Index: chrome/browser/ui/gtk/password_generation_bubble_gtk.h
|
| diff --git a/chrome/browser/ui/gtk/password_generation_bubble_gtk.h b/chrome/browser/ui/gtk/password_generation_bubble_gtk.h
|
| index 1de4e2d205b844b7e4f161eff703ac4a8be5b3da..bd362658ab2165794362e672e4afd0ee467eee64 100644
|
| --- a/chrome/browser/ui/gtk/password_generation_bubble_gtk.h
|
| +++ b/chrome/browser/ui/gtk/password_generation_bubble_gtk.h
|
| @@ -8,10 +8,14 @@
|
|
|
| #include <gtk/gtk.h>
|
|
|
| -#include "chrome/browser/autofill/password_generator.h"
|
| +#include "base/basictypes.h"
|
| #include "ui/base/gtk/gtk_signal.h"
|
| #include "ui/gfx/rect.h"
|
|
|
| +namespace autofill {
|
| +class PasswordGenerator;
|
| +}
|
| +
|
| namespace content {
|
| class RenderViewHost;
|
| }
|
| @@ -25,10 +29,12 @@ class Profile;
|
| // with |render_view_host| is informed of this password.
|
| class PasswordGenerationBubbleGtk {
|
| public:
|
| - PasswordGenerationBubbleGtk(const gfx::Rect& anchor_rect,
|
| - GtkWidget* anchor_widget,
|
| - Profile* profile,
|
| - content::RenderViewHost* render_view_host);
|
| + PasswordGenerationBubbleGtk(
|
| + const gfx::Rect& anchor_rect,
|
| + GtkWidget* anchor_widget,
|
| + Profile* profile,
|
| + content::RenderViewHost* render_view_host,
|
| + const autofill::PasswordGenerator& password_generator);
|
| virtual ~PasswordGenerationBubbleGtk();
|
|
|
| private:
|
| @@ -44,8 +50,8 @@ class PasswordGenerationBubbleGtk {
|
| // RenderViewHost associated with the button that spawned this bubble.
|
| content::RenderViewHost* render_view_host_;
|
|
|
| - // Class that deals with generating passwords.
|
| - autofill::PasswordGenerator password_generator_;
|
| + // Object that deals with generating passwords.
|
| + const autofill::PasswordGenerator& password_generator_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(PasswordGenerationBubbleGtk);
|
| };
|
|
|