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

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

Issue 979453002: [Extensions] Make chrome://extensions use developerPrivate for unpacked loading (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 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
Index: chrome/browser/extensions/unpacked_installer.h
diff --git a/chrome/browser/extensions/unpacked_installer.h b/chrome/browser/extensions/unpacked_installer.h
index 853cc3979df9b7164909f0597f2bd95442db1e33..db95a07d89e8cf0b8ec1c81c86231a00ff151550 100644
--- a/chrome/browser/extensions/unpacked_installer.h
+++ b/chrome/browser/extensions/unpacked_installer.h
@@ -29,8 +29,9 @@ class Extension;
class UnpackedInstaller
: public base::RefCountedThreadSafe<UnpackedInstaller> {
public:
- typedef base::Callback<void(const base::FilePath&, const std::string&)>
- OnFailureCallback;
+ using CompletionCallback = base::Callback<void(const Extension* extension,
+ const base::FilePath&,
+ const std::string&)>;
static scoped_refptr<UnpackedInstaller> Create(
ExtensionService* extension_service);
@@ -68,6 +69,10 @@ class UnpackedInstaller
be_noisy_on_failure_ = be_noisy_on_failure;
}
+ void set_completion_callback(const CompletionCallback& callback) {
+ callback_ = callback;
+ }
+
private:
friend class base::RefCountedThreadSafe<UnpackedInstaller>;
@@ -133,6 +138,8 @@ class UnpackedInstaller
// installed.
ExtensionInstallChecker install_checker_;
+ CompletionCallback callback_;
+
DISALLOW_COPY_AND_ASSIGN(UnpackedInstaller);
};
« no previous file with comments | « chrome/browser/extensions/api/developer_private/entry_picker.cc ('k') | chrome/browser/extensions/unpacked_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698