summaryrefslogtreecommitdiffstats
path: root/chrome/browser/component_updater/component_updater_service.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 23:17:07 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-19 23:17:07 +0000
commitad50def5e1165d0cc74b98f988bbd5962587d9f4 (patch)
tree3a751abaed2cc056ca60b8b1e3ff54532a6f4d3f /chrome/browser/component_updater/component_updater_service.cc
parent75c920505ddfb2d49c194c76bde64edd6b3f91f2 (diff)
downloadchromium_src-ad50def5e1165d0cc74b98f988bbd5962587d9f4.zip
chromium_src-ad50def5e1165d0cc74b98f988bbd5962587d9f4.tar.gz
chromium_src-ad50def5e1165d0cc74b98f988bbd5962587d9f4.tar.bz2
Make NotificationService an interface in the content namespace, and switch callers to use it. Move the implementation to content/browser. Stop creating it in all child processes since it's only used in the browser.
BUG=98716 Review URL: http://codereview.chromium.org/8342048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106403 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/component_updater/component_updater_service.cc')
-rw-r--r--chrome/browser/component_updater/component_updater_service.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/chrome/browser/component_updater/component_updater_service.cc b/chrome/browser/component_updater/component_updater_service.cc
index 84e37d4d5..43bc3c9 100644
--- a/chrome/browser/component_updater/component_updater_service.cc
+++ b/chrome/browser/component_updater/component_updater_service.cc
@@ -25,7 +25,7 @@
#include "chrome/common/extensions/extension.h"
#include "content/browser/utility_process_host.h"
#include "content/common/net/url_fetcher.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "googleurl/src/gurl.h"
#include "net/base/escape.h"
#include "net/base/load_flags.h"
@@ -347,10 +347,10 @@ ComponentUpdateService::Status CrxUpdateService::Start() {
if (work_items_.empty())
return kOk;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_COMPONENT_UPDATER_STARTED,
content::Source<ComponentUpdateService>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
timer_.Start(FROM_HERE, base::TimeDelta::FromSeconds(config_->InitialDelay()),
this, &CrxUpdateService::ProcessPendingItems);
@@ -381,10 +381,10 @@ void CrxUpdateService::ScheduleNextRun(bool step_delay) {
int64 delay = step_delay ? config_->StepDelay() : config_->NextCheckDelay();
if (!step_delay) {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_COMPONENT_UPDATER_SLEEPING,
content::Source<ComponentUpdateService>(this),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
// Zero is only used for unit tests.
if (0 == delay)
return;
@@ -634,10 +634,10 @@ void CrxUpdateService::OnParseUpdateManifestSucceeded(
crx->next_version = Version(it->version);
++update_pending;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_COMPONENT_UPDATE_FOUND,
content::Source<std::string>(&crx->id),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
// All the components that are not mentioned in the manifest we
@@ -681,10 +681,10 @@ void CrxUpdateService::OnURLFetchComplete(const URLFetcher* source,
DCHECK_EQ(count, 1ul);
url_fetcher_.reset();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_COMPONENT_UPDATE_READY,
content::Source<std::string>(&context->id),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
BrowserThread::PostDelayedTask(BrowserThread::FILE, FROM_HERE,
NewRunnableMethod(this, &CrxUpdateService::Install,