summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc')
-rw-r--r--chromium/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chromium/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc b/chromium/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
index 06c58128a08..35898e2e8f3 100644
--- a/chromium/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
+++ b/chromium/chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc
@@ -28,7 +28,6 @@
#include "chrome/browser/ui/browser_window.h"
#include "components/update_client/update_query_params.h"
#include "content/public/browser/notification_service.h"
-#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/notification_types.h"
#include "extensions/browser/warning_service.h"
@@ -145,9 +144,7 @@ struct ChromeRuntimeAPIDelegate::UpdateCheckInfo {
ChromeRuntimeAPIDelegate::ChromeRuntimeAPIDelegate(
content::BrowserContext* context)
- : browser_context_(context),
- registered_for_updates_(false),
- extension_registry_observer_(this) {
+ : browser_context_(context), registered_for_updates_(false) {
registrar_.Add(this,
extensions::NOTIFICATION_EXTENSION_UPDATE_FOUND,
content::NotificationService::AllSources());
@@ -267,9 +264,12 @@ bool ChromeRuntimeAPIDelegate::CheckForUpdates(
true, kUpdateThrottled, "")));
} else {
info.callbacks.push_back(callback);
- updater->CheckExtensionSoon(
- extension_id, base::Bind(&ChromeRuntimeAPIDelegate::UpdateCheckComplete,
- base::Unretained(this), extension_id));
+
+ extensions::ExtensionUpdater::CheckParams params;
+ params.ids = {extension_id};
+ params.callback = base::Bind(&ChromeRuntimeAPIDelegate::UpdateCheckComplete,
+ base::Unretained(this), extension_id);
+ updater->CheckNow(std::move(params));
}
return true;
}