Commit 71cc6f7a authored by estade@chromium.org's avatar estade@chromium.org

media galleries dialog:

1 - fix a crash
2 - remove an ifdef that's no longer required

BUG=134929

Review URL: https://chromiumcodereview.appspot.com/10855087

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151108 0039d316-1c4b-4281-b951-d872f2087c98
parent 85b25eb7
...@@ -31,11 +31,7 @@ MediaGalleriesDialogController::MediaGalleriesDialogController( ...@@ -31,11 +31,7 @@ MediaGalleriesDialogController::MediaGalleriesDialogController(
tab_contents_->profile())) { tab_contents_->profile())) {
LookUpPermissions(); LookUpPermissions();
#if defined(TOOLKIT_GTK)
dialog_.reset(MediaGalleriesDialog::Create(this)); dialog_.reset(MediaGalleriesDialog::Create(this));
#else
NOTIMPLEMENTED();
#endif
} }
MediaGalleriesDialogController::~MediaGalleriesDialogController() { MediaGalleriesDialogController::~MediaGalleriesDialogController() {
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <list> #include <list>
#include <map> #include <map>
#include "base/callback.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
#include "base/string16.h" #include "base/string16.h"
#include "chrome/browser/media_gallery/media_galleries_preferences.h" #include "chrome/browser/media_gallery/media_galleries_preferences.h"
...@@ -111,7 +112,7 @@ class MediaGalleriesDialogController : public ui::SelectFileDialog::Listener { ...@@ -111,7 +112,7 @@ class MediaGalleriesDialogController : public ui::SelectFileDialog::Listener {
NewGalleryPermissions new_galleries_; NewGalleryPermissions new_galleries_;
// We run this callback when done. // We run this callback when done.
const base::Callback<void(void)>& on_finish_; base::Callback<void(void)> on_finish_;
// The model that tracks galleries and extensions' permissions. // The model that tracks galleries and extensions' permissions.
MediaGalleriesPreferences* preferences_; MediaGalleriesPreferences* preferences_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment