summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_install_prompt.h
diff options
context:
space:
mode:
authorrdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-29 02:48:11 +0000
committerrdevlin.cronin@chromium.org <rdevlin.cronin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-29 02:48:11 +0000
commit34b5f7f5456366d1ac172d1215d74b4157c5525d (patch)
treebaf913e35c39654734b6cc10b331b98b60afb362 /chrome/browser/extensions/extension_install_prompt.h
parent2d7baa52aba7ed58943a96d4712753d9c2ad45c1 (diff)
downloadchromium_src-34b5f7f5456366d1ac172d1215d74b4157c5525d.zip
chromium_src-34b5f7f5456366d1ac172d1215d74b4157c5525d.tar.gz
chromium_src-34b5f7f5456366d1ac172d1215d74b4157c5525d.tar.bz2
Make sideloaded (externally installed) extensions display webstore info
Have sideloaded extensions pull data from the webstore (a la inline install) in order to give the users a better idea of what extension they are installing. Images worth 1000 words: http://imgur.com/zlexZeb,VljPXLz,WzT2ZOc#0 XIB changes: * rename 'app/nibs/ExtensionInstallPromptInline.xib' to 'app/nibs/ExtensionInstallPromptWebstoreData', since the same prompt is now used for inline prompts and for sideloaded extensions when webstore data is available. BUG=323063 Review URL: https://codereview.chromium.org/145153002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_install_prompt.h')
-rw-r--r--chrome/browser/extensions/extension_install_prompt.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/chrome/browser/extensions/extension_install_prompt.h b/chrome/browser/extensions/extension_install_prompt.h
index 98e0b25..85ab0f6 100644
--- a/chrome/browser/extensions/extension_install_prompt.h
+++ b/chrome/browser/extensions/extension_install_prompt.h
@@ -89,10 +89,10 @@ class ExtensionInstallPrompt
void SetIsShowingDetails(DetailsType type,
size_t index,
bool is_showing_details);
- void SetInlineInstallWebstoreData(const std::string& localized_user_count,
- bool show_user_count,
- double average_rating,
- int rating_count);
+ void SetWebstoreData(const std::string& localized_user_count,
+ bool show_user_count,
+ double average_rating,
+ int rating_count);
void SetOAuthIssueAdvice(const IssueAdviceInfo& issue_advice);
void SetUserNameFromProfile(Profile* profile);
@@ -155,10 +155,11 @@ class ExtensionInstallPrompt
const gfx::Image& icon() const { return icon_; }
void set_icon(const gfx::Image& icon) { icon_ = icon; }
+ bool has_webstore_data() const { return has_webstore_data_; }
+
const ExtensionInstallPromptExperiment* experiment() const {
return experiment_;
}
-
void set_experiment(ExtensionInstallPromptExperiment* experiment) {
experiment_ = experiment;
}
@@ -202,6 +203,10 @@ class ExtensionInstallPrompt
// false if localized_user_count_ represents the number zero).
bool show_user_count_;
+ // Whether or not this prompt has been populated with data from the
+ // webstore.
+ bool has_webstore_data_;
+
std::vector<base::FilePath> retained_files_;
scoped_refptr<ExtensionInstallPromptExperiment> experiment_;
@@ -327,7 +332,8 @@ class ExtensionInstallPrompt
virtual void ConfirmExternalInstall(
Delegate* delegate,
const extensions::Extension* extension,
- const ShowDialogCallback& show_dialog_callback);
+ const ShowDialogCallback& show_dialog_callback,
+ const Prompt& prompt);
// This is called by the extension permissions API to verify whether an
// extension may be granted additional permissions.