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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/extension_view_mac.mm

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/cocoa/extensions/extension_view_mac.h" 5 #include "chrome/browser/ui/cocoa/extensions/extension_view_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/mac/foundation_util.h" 9 #include "base/mac/foundation_util.h"
10 #include "chrome/browser/extensions/extension_view_host.h" 10 #include "chrome/browser/extensions/extension_view_host.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 container_->OnExtensionViewDidShow(this); 102 container_->OnExtensionViewDidShow(this);
103 } 103 }
104 } 104 }
105 105
106 namespace extensions { 106 namespace extensions {
107 107
108 // static 108 // static
109 scoped_ptr<ExtensionView> ExtensionViewHost::CreateExtensionView( 109 scoped_ptr<ExtensionView> ExtensionViewHost::CreateExtensionView(
110 ExtensionViewHost* host, 110 ExtensionViewHost* host,
111 Browser* browser) { 111 Browser* browser) {
112 scoped_ptr<ExtensionViewMac> view(new ExtensionViewMac(host, browser)); 112 return make_scoped_ptr(new ExtensionViewMac(host, browser));
113 return view.PassAs<ExtensionView>();
114 } 113 }
115 114
116 } // namespace extensions 115 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698