diff options
author | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-13 23:24:03 +0000 |
---|---|---|
committer | mek@chromium.org <mek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-13 23:24:03 +0000 |
commit | 2bb2ee8e3034ac9cc415d69c864a2e3b887982ee (patch) | |
tree | 60b27724a4332f4bc9580c5c5777599013e40048 /chrome/browser/first_run | |
parent | 39b9a684f982cb7cb3813ea8018943d397a9e7f1 (diff) | |
download | chromium_src-2bb2ee8e3034ac9cc415d69c864a2e3b887982ee.zip chromium_src-2bb2ee8e3034ac9cc415d69c864a2e3b887982ee.tar.gz chromium_src-2bb2ee8e3034ac9cc415d69c864a2e3b887982ee.tar.bz2 |
Refactor ExtensionUpdater/ExtensionDownloader to be able to get more meaningfull notifications about update checks.
This removes the global NOTIFICATION_EXTENSION_UPDATING_FINISHED notification and
instead you can now pass a callback to CheckNow. This callback will be called when
that exact update check has been finished.
This is a first step towards making it possible to add checks that only check for
updates for specific extensions, and also should make it possible to have some
usefull feedback when manually clicking the "Check now" button in the chrome://extensions
page.
BUG=88945
Review URL: https://chromiumcodereview.appspot.com/11309008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/first_run')
-rw-r--r-- | chrome/browser/first_run/first_run_win.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/first_run/first_run_win.cc b/chrome/browser/first_run/first_run_win.cc index 4fede553..0d99c3a 100644 --- a/chrome/browser/first_run/first_run_win.cc +++ b/chrome/browser/first_run/first_run_win.cc @@ -8,6 +8,7 @@ #include <shlobj.h> #include <windows.h> +#include "base/callback.h" #include "base/environment.h" #include "base/file_util.h" #include "base/path_service.h" @@ -97,7 +98,7 @@ class FirstRunDelayedTasks : public content::NotificationObserver { // extension it will get updated which is the same as get it installed. void DoExtensionWork(ExtensionService* service) { if (service) - service->updater()->CheckNow(); + service->updater()->CheckNow(base::Closure()); } content::NotificationRegistrar registrar_; |