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

Side by Side Diff: chrome/browser/ui/app_list/search/webstore/webstore_installer.cc

Issue 23874015: Implement people search. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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 "chrome/browser/ui/app_list/search/webstore_installer.h" 5 #include "chrome/browser/ui/app_list/search/webstore/webstore_installer.h"
6 6
7 #include "chrome/browser/extensions/extension_install_prompt.h" 7 #include "chrome/browser/extensions/extension_install_prompt.h"
8 #include "chrome/browser/ui/browser_finder.h" 8 #include "chrome/browser/ui/browser_finder.h"
9 9
10 namespace app_list { 10 namespace app_list {
11 11
12 WebstoreInstaller::WebstoreInstaller(const std::string& webstore_item_id, 12 WebstoreInstaller::WebstoreInstaller(const std::string& webstore_item_id,
13 Profile* profile, 13 Profile* profile,
14 gfx::NativeWindow parent_window, 14 gfx::NativeWindow parent_window,
15 const Callback& callback) 15 const Callback& callback)
16 : WebstoreStartupInstaller(webstore_item_id, profile, true, callback), 16 : WebstoreStartupInstaller(webstore_item_id, profile, true, callback),
17 profile_(profile), 17 profile_(profile),
18 parent_window_(parent_window) {} 18 parent_window_(parent_window) {}
19 19
20 WebstoreInstaller::~WebstoreInstaller() {} 20 WebstoreInstaller::~WebstoreInstaller() {}
21 21
22 scoped_ptr<ExtensionInstallPrompt> WebstoreInstaller::CreateInstallUI() { 22 scoped_ptr<ExtensionInstallPrompt> WebstoreInstaller::CreateInstallUI() {
23 return make_scoped_ptr( 23 return make_scoped_ptr(
24 new ExtensionInstallPrompt(profile_, parent_window_, this)); 24 new ExtensionInstallPrompt(profile_, parent_window_, this));
25 } 25 }
26 26
27 content::WebContents* WebstoreInstaller::OpenURL( 27 content::WebContents* WebstoreInstaller::OpenURL(
28 const content::OpenURLParams& params) { 28 const content::OpenURLParams& params) {
29 Browser* browser = chrome::FindOrCreateTabbedBrowser( 29 Browser* browser = chrome::FindOrCreateTabbedBrowser(
30 profile_, chrome::GetActiveDesktop()); 30 profile_, chrome::GetActiveDesktop());
31 return browser->OpenURL(params); 31 return browser->OpenURL(params);
32 } 32 }
33 33
34 } // namespace app_list 34 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698