Update broken references to image assets
[chromium-blink-merge.git] / chrome / browser / extensions / webstore_startup_installer.cc
blob711e960cb6ab2d55e7c4543935c54381c6573327
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
3 // found in the LICENSE file.
5 #include "chrome/browser/extensions/webstore_startup_installer.h"
7 namespace extensions {
9 WebstoreStartupInstaller::WebstoreStartupInstaller(
10 const std::string& webstore_item_id,
11 Profile* profile,
12 bool show_prompt,
13 const Callback& callback)
14 : WebstoreInstallWithPrompt(webstore_item_id, profile, callback),
15 show_prompt_(show_prompt) {
16 set_install_source(WebstoreInstaller::INSTALL_SOURCE_INLINE);
17 set_show_post_install_ui(false);
20 WebstoreStartupInstaller::~WebstoreStartupInstaller() {}
22 scoped_refptr<ExtensionInstallPrompt::Prompt>
23 WebstoreStartupInstaller::CreateInstallPrompt() const {
24 if (show_prompt_) {
25 return new ExtensionInstallPrompt::Prompt(
26 ExtensionInstallPrompt::INSTALL_PROMPT);
28 return NULL;
31 } // namespace extensions