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

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

Issue 263643005: Move ExtensionService::ReportExtensionLoadError to ExtensionErrorReporter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 | « chrome/browser/extensions/installed_loader.cc ('k') | chrome/browser/extensions/unpacked_installer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/unpacked_installer.h
diff --git a/chrome/browser/extensions/unpacked_installer.h b/chrome/browser/extensions/unpacked_installer.h
index 5d2414987efbdf4d76ae0f56cedccd55d036cad3..fc22e3c92b460b7b2ae29dbb94c68c1d521045f6 100644
--- a/chrome/browser/extensions/unpacked_installer.h
+++ b/chrome/browser/extensions/unpacked_installer.h
@@ -69,6 +69,10 @@ class UnpackedInstaller
on_failure_callback_ = callback;
}
+ void set_be_noisy_on_failure(bool be_noisy_on_failure) {
+ be_noisy_on_failure_ = be_noisy_on_failure;
+ }
+
private:
friend class base::RefCountedThreadSafe<UnpackedInstaller>;
@@ -128,6 +132,9 @@ class UnpackedInstaller
// An optional callback to set in order to be notified of failure.
OnFailureCallback on_failure_callback_;
+ // Whether or not to be noisy (show a dialog) on failure. Defaults to true.
+ bool be_noisy_on_failure_;
+
// Gives access to common methods and data of an extension installer.
ExtensionInstaller installer_;
« no previous file with comments | « chrome/browser/extensions/installed_loader.cc ('k') | chrome/browser/extensions/unpacked_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698