| Index: chrome/browser/ui/panels/panel.cc
|
| diff --git a/chrome/browser/ui/panels/panel.cc b/chrome/browser/ui/panels/panel.cc
|
| index 1f63a80b934c6dcad48135262439935de4190f27..b4ebc4cca1531eb47a17b47fdf77da4e65d0a544 100644
|
| --- a/chrome/browser/ui/panels/panel.cc
|
| +++ b/chrome/browser/ui/panels/panel.cc
|
| @@ -102,6 +102,7 @@ bool PanelExtensionWindowController::IsVisibleToExtension(
|
| Panel::Panel(const std::string& app_name,
|
| const gfx::Size& min_size, const gfx::Size& max_size)
|
| : app_name_(app_name),
|
| + profile_(NULL),
|
| panel_strip_(NULL),
|
| initialized_(false),
|
| min_size_(min_size),
|
| @@ -142,6 +143,7 @@ void Panel::Initialize(Profile* profile, const GURL& url,
|
| DCHECK_EQ(EXPANDED, expansion_state_);
|
| DCHECK(!bounds.IsEmpty());
|
| initialized_ = true;
|
| + profile_ = profile;
|
| full_size_ = bounds.size();
|
| native_panel_ = CreateNativePanel(this, bounds);
|
|
|
| @@ -215,7 +217,7 @@ CommandUpdater* Panel::command_updater() {
|
| }
|
|
|
| Profile* Panel::profile() const {
|
| - return extension_window_controller_->profile();
|
| + return profile_;
|
| }
|
|
|
| const std::string Panel::extension_id() const {
|
|
|