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

Unified Diff: chrome/browser/component_updater/component_updater_service.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/component_updater/component_updater_service.cc
===================================================================
--- chrome/browser/component_updater/component_updater_service.cc (revision 106380)
+++ chrome/browser/component_updater/component_updater_service.cc (working copy)
@@ -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 @@
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 @@
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 @@
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 @@
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,
« no previous file with comments | « chrome/browser/chromeos/wm_ipc.cc ('k') | chrome/browser/component_updater/component_updater_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698