Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: chrome/browser/ui/views/extensions/extension_view_views.cc

Issue 657333002: Use scoped_ptr::Pass instead of scoped_ptr::PassAs<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698