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

Side by Side Diff: chrome/browser/chromeos/file_manager/app_installer.cc

Issue 145153002: Make sideloaded (externally installed) extensions display webstore info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ChromeOS fix Created 6 years, 10 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 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/chromeos/file_manager/app_installer.h" 5 #include "chrome/browser/chromeos/file_manager/app_installer.h"
6 6
7 #include "content/public/browser/web_contents.h" 7 #include "content/public/browser/web_contents.h"
8 8
9 class Profile; 9 class Profile;
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const GURL& AppInstaller::GetRequestorURL() const { 62 const GURL& AppInstaller::GetRequestorURL() const {
63 return GURL::EmptyGURL(); 63 return GURL::EmptyGURL();
64 } 64 }
65 65
66 scoped_ptr<ExtensionInstallPrompt::Prompt> 66 scoped_ptr<ExtensionInstallPrompt::Prompt>
67 AppInstaller::CreateInstallPrompt() const { 67 AppInstaller::CreateInstallPrompt() const {
68 scoped_ptr<ExtensionInstallPrompt::Prompt> prompt( 68 scoped_ptr<ExtensionInstallPrompt::Prompt> prompt(
69 new ExtensionInstallPrompt::Prompt( 69 new ExtensionInstallPrompt::Prompt(
70 ExtensionInstallPrompt::INLINE_INSTALL_PROMPT)); 70 ExtensionInstallPrompt::INLINE_INSTALL_PROMPT));
71 71
72 prompt->SetInlineInstallWebstoreData(localized_user_count(), 72 prompt->SetWebstoreData(localized_user_count(),
73 show_user_count(), 73 show_user_count(),
74 average_rating(), 74 average_rating(),
75 rating_count()); 75 rating_count());
76 return prompt.Pass(); 76 return prompt.Pass();
77 } 77 }
78 78
79 bool AppInstaller::ShouldShowPostInstallUI() const { 79 bool AppInstaller::ShouldShowPostInstallUI() const {
80 return false; 80 return false;
81 } 81 }
82 82
83 bool AppInstaller::ShouldShowAppInstalledBubble() const { 83 bool AppInstaller::ShouldShowAppInstalledBubble() const {
84 return false; 84 return false;
85 } 85 }
(...skipping 18 matching lines...) Expand all
104 return true; 104 return true;
105 } 105 }
106 106
107 void AppInstaller::OnWebContentsDestroyed( 107 void AppInstaller::OnWebContentsDestroyed(
108 content::WebContents* web_contents) { 108 content::WebContents* web_contents) {
109 callback_.Run(false, kWebContentsDestroyedError); 109 callback_.Run(false, kWebContentsDestroyedError);
110 AbortInstall(); 110 AbortInstall();
111 } 111 }
112 112
113 } // namespace file_manager 113 } // namespace file_manager
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_data.cc ('k') | chrome/browser/extensions/extension_install_prompt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698