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

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

Issue 12319131: Update extensions with Drag-and-Drop in extension settings page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/crx_installer.h
diff --git a/chrome/browser/extensions/crx_installer.h b/chrome/browser/extensions/crx_installer.h
index 90ad00134ae94916ac6c0eaa4f5811fb1a407d1d..0f49f3bdb0c76b6d7e308dce685d4a6e70ae3ce8 100644
--- a/chrome/browser/extensions/crx_installer.h
+++ b/chrome/browser/extensions/crx_installer.h
@@ -247,8 +247,13 @@ class CrxInstaller
// Deletes temporary directory and crx file if needed.
void CleanupTempFiles();
- // Creates sequenced task runner for extension install file I/O operations.
- scoped_refptr<base::SequencedTaskRunner> CreateSequencedTaskRunner();
+ // Checks whether the current installation is initiated by the user from
+ // the extension settings page to update an existing extension or app.
+ void CheckUpdateFromSettingsPage();
+
+ // Show re-enable prompt if the update is initiated from the settings page
+ // and needs additional permissions.
+ void ConfirmReEnable();
// The file we're installing.
base::FilePath source_file_;
@@ -393,6 +398,10 @@ class CrxInstaller
// Used to show the install dialog.
ExtensionInstallPrompt::ShowDialogCallback show_dialog_callback_;
+ // Whether the update is initiated by the user from the extension settings
+ // page.
+ bool update_from_settings_page_;
+
DISALLOW_COPY_AND_ASSIGN(CrxInstaller);
};
« no previous file with comments | « no previous file | chrome/browser/extensions/crx_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698