summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download/download_manager.cc
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 22:04:40 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-03 22:04:40 +0000
commit91e1bd8b364d374372ab7be8c133ca03ffa1d2dd (patch)
treecc09b2d614599d8d3c3311d9a2080c071817f0f7 /chrome/browser/download/download_manager.cc
parent673336b8ef5a8708d7d3fe0dc8c3daa8d12d4097 (diff)
downloadchromium_src-91e1bd8b364d374372ab7be8c133ca03ffa1d2dd.zip
chromium_src-91e1bd8b364d374372ab7be8c133ca03ffa1d2dd.tar.gz
chromium_src-91e1bd8b364d374372ab7be8c133ca03ffa1d2dd.tar.bz2
Add "loading..." message to theme install to counter jank.
BUG= http://crbug.com/17696 TEST= Install a theme. Note that a "loading" message appears to notify you that a theme is loading. Review URL: http://codereview.chromium.org/191011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25383 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_manager.cc')
-rw-r--r--chrome/browser/download/download_manager.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 4c4dc9e..ae61ffd 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -32,6 +32,8 @@
#include "chrome/common/chrome_constants.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/extensions/extension.h"
+#include "chrome/common/notification_service.h"
+#include "chrome/common/notification_type.h"
#include "chrome/common/platform_util.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
@@ -1250,6 +1252,10 @@ void DownloadManager::OpenChromeExtension(const FilePath& full_path,
// We don't support extensions in OTR mode.
ExtensionsService* service = profile_->GetExtensionsService();
if (service) {
+ NotificationService* nservice = NotificationService::current();
+ nservice->Notify(NotificationType::EXTENSION_READY_FOR_INSTALL,
+ Source<DownloadManager>(this),
+ NotificationService::NoDetails());
CrxInstaller::Start(full_path,
service->install_directory(),
Extension::INTERNAL,