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

Unified Diff: chrome/browser/extensions/extension_install_prompt.h

Issue 580363002: Update app info and install prompt UI to show retained devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_install_prompt.h
diff --git a/chrome/browser/extensions/extension_install_prompt.h b/chrome/browser/extensions/extension_install_prompt.h
index 54fa47ee81ca1b27736357dbdec3facab34f05e3..1891389d25b01e60248be5924f436f949b998054 100644
--- a/chrome/browser/extensions/extension_install_prompt.h
+++ b/chrome/browser/extensions/extension_install_prompt.h
@@ -81,6 +81,7 @@ class ExtensionInstallPrompt
enum DetailsType {
PERMISSIONS_DETAILS = 0,
RETAINED_FILES_DETAILS,
+ RETAINED_DEVICES_DETAILS,
};
static std::string PromptTypeToString(PromptType type);
@@ -121,6 +122,7 @@ class ExtensionInstallPrompt
base::string16 GetAbortButtonLabel() const;
base::string16 GetPermissionsHeading() const;
base::string16 GetRetainedFilesHeading() const;
+ base::string16 GetRetainedDevicesHeading() const;
bool ShouldShowPermissions() const;
bool ShouldShowExplanationText() const;
@@ -143,6 +145,8 @@ class ExtensionInstallPrompt
bool GetIsShowingDetails(DetailsType type, size_t index) const;
size_t GetRetainedFileCount() const;
base::string16 GetRetainedFile(size_t index) const;
+ size_t GetRetainedDeviceCount() const;
+ const base::string16& GetRetainedDeviceMessageString(size_t index) const;
// Populated for BUNDLE_INSTALL_PROMPT.
const extensions::BundleInstaller* bundle() const { return bundle_; }
@@ -160,6 +164,10 @@ class ExtensionInstallPrompt
void set_retained_files(const std::vector<base::FilePath>& retained_files) {
retained_files_ = retained_files;
}
+ void set_retained_device_messages(
+ const std::vector<base::string16>& retained_device_messages) {
+ retained_device_messages_ = retained_device_messages;
+ }
const gfx::Image& icon() const { return icon_; }
void set_icon(const gfx::Image& icon) { icon_ = icon; }
@@ -178,7 +186,7 @@ class ExtensionInstallPrompt
virtual ~Prompt();
- bool ShouldDisplayRevokeFilesButton() const;
+ bool ShouldDisplayRevokeButton() const;
PromptType type_;
@@ -188,6 +196,7 @@ class ExtensionInstallPrompt
std::vector<base::string16> details_;
std::vector<bool> is_showing_details_for_permissions_;
bool is_showing_details_for_retained_files_;
+ bool is_showing_details_for_retained_devices_;
// The extension or bundle being installed.
const extensions::Extension* extension_;
@@ -213,6 +222,7 @@ class ExtensionInstallPrompt
bool has_webstore_data_;
std::vector<base::FilePath> retained_files_;
+ std::vector<base::string16> retained_device_messages_;
scoped_refptr<ExtensionInstallPromptExperiment> experiment_;
@@ -355,7 +365,8 @@ class ExtensionInstallPrompt
virtual void ReviewPermissions(
Delegate* delegate,
const extensions::Extension* extension,
- const std::vector<base::FilePath>& retained_file_paths);
+ const std::vector<base::FilePath>& retained_file_paths,
+ const std::vector<base::string16>& retained_device_messages);
// Installation was successful. This is declared virtual for testing.
virtual void OnInstallSuccess(const extensions::Extension* extension,

Powered by Google App Engine
This is Rietveld 408576698