| 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/views/extensions/extension_view_views.h" | 5 #include "chrome/browser/ui/views/extensions/extension_view_views.h" |
| 6 | 6 |
| 7 #include "chrome/browser/extensions/extension_view_host.h" | 7 #include "chrome/browser/extensions/extension_view_host.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/views/extensions/extension_popup.h" | 9 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
| 10 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 namespace extensions { | 188 namespace extensions { |
| 189 | 189 |
| 190 // static | 190 // static |
| 191 scoped_ptr<ExtensionView> ExtensionViewHost::CreateExtensionView( | 191 scoped_ptr<ExtensionView> ExtensionViewHost::CreateExtensionView( |
| 192 ExtensionViewHost* host, | 192 ExtensionViewHost* host, |
| 193 Browser* browser) { | 193 Browser* browser) { |
| 194 scoped_ptr<ExtensionViewViews> view(new ExtensionViewViews(host, browser)); | 194 scoped_ptr<ExtensionViewViews> view(new ExtensionViewViews(host, browser)); |
| 195 // We own |view_|, so don't auto delete when it's removed from the view | 195 // We own |view_|, so don't auto delete when it's removed from the view |
| 196 // hierarchy. | 196 // hierarchy. |
| 197 view->set_owned_by_client(); | 197 view->set_owned_by_client(); |
| 198 return view.PassAs<ExtensionView>(); | 198 return view.Pass(); |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace extensions | 201 } // namespace extensions |
| OLD | NEW |