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

Side by Side Diff: chrome/browser/extensions/webstore_inline_installer_factory.cc

Issue 1403293008: Don't allow inline install if frame is deleted before user accepts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix unit test compile failure Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "base/memory/scoped_ptr.h" 5 #include "base/memory/scoped_ptr.h"
6 #include "chrome/browser/extensions/webstore_inline_installer.h" 6 #include "chrome/browser/extensions/webstore_inline_installer.h"
7 #include "chrome/browser/extensions/webstore_inline_installer_factory.h" 7 #include "chrome/browser/extensions/webstore_inline_installer_factory.h"
8 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
9 9
10 namespace extensions { 10 namespace extensions {
11 11
12 WebstoreInlineInstaller* WebstoreInlineInstallerFactory::CreateInstaller( 12 WebstoreInlineInstaller* WebstoreInlineInstallerFactory::CreateInstaller(
13 content::WebContents* contents, 13 content::WebContents* contents,
14 const std::string& webstore_item_id, 14 content::RenderFrameHost* host,
15 const GURL& requestor_url, 15 const std::string& webstore_item_id,
16 const WebstoreStandaloneInstaller::Callback& callback) { 16 const GURL& requestor_url,
17 return new WebstoreInlineInstaller( 17 const WebstoreStandaloneInstaller::Callback& callback) {
18 contents, webstore_item_id, requestor_url, callback); 18 return new WebstoreInlineInstaller(contents, host, webstore_item_id,
19 requestor_url, callback);
19 } 20 }
20 21
21 } // namespace extensions 22 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698