| Index: chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
|
| diff --git a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
|
| index eb9e513f8200dbb5f10c5c2621c7c630bf1fbcad..1e4ded2bf7f10b5b4b2b6d67054dd7198a0ceefa 100644
|
| --- a/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
|
| +++ b/chrome/browser/ui/gtk/create_application_shortcuts_dialog_gtk.h
|
| @@ -23,6 +23,7 @@ typedef struct _GtkWidget GtkWidget;
|
| typedef struct _GtkWindow GtkWindow;
|
|
|
| class Extension;
|
| +class Profile;
|
| class TabContentsWrapper;
|
|
|
| class CreateApplicationShortcutsDialogGtk
|
| @@ -48,9 +49,9 @@ class CreateApplicationShortcutsDialogGtk
|
| // Subclasses can override it to take some action at that time.
|
| virtual void OnCreatedShortcut(void) {}
|
|
|
| - void CreateDesktopShortcut(
|
| + virtual void CreateDesktopShortcut(
|
| const ShellIntegration::ShortcutInfo& shortcut_info);
|
| - void ShowErrorDialog();
|
| + virtual void ShowErrorDialog();
|
|
|
| GtkWindow* parent_;
|
|
|
| @@ -101,9 +102,10 @@ class CreateChromeApplicationShortcutsDialogGtk
|
| public ImageLoadingTracker::Observer {
|
| public:
|
| // Displays the dialog box to create application shortcuts for |app|.
|
| - static void Show(GtkWindow* parent, const Extension* app);
|
| + static void Show(GtkWindow* parent, Profile* profile, const Extension* app);
|
|
|
| CreateChromeApplicationShortcutsDialogGtk(GtkWindow* parent,
|
| + Profile* profile,
|
| const Extension* app);
|
| virtual ~CreateChromeApplicationShortcutsDialogGtk() {}
|
|
|
| @@ -114,8 +116,13 @@ class CreateChromeApplicationShortcutsDialogGtk
|
| const std::string& extension_id,
|
| int index) OVERRIDE;
|
|
|
| + protected:
|
| + virtual void CreateDesktopShortcut(
|
| + const ShellIntegration::ShortcutInfo& shortcut_info) OVERRIDE;
|
| +
|
| private:
|
| const Extension* app_;
|
| + FilePath profile_path_;
|
| ImageLoadingTracker tracker_;
|
| DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutsDialogGtk);
|
| };
|
|
|