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

Unified Diff: chrome/browser/web_resource/promo_resource_service.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/web_resource/promo_resource_service.cc
===================================================================
--- chrome/browser/web_resource/promo_resource_service.cc (revision 91968)
+++ chrome/browser/web_resource/promo_resource_service.cc (working copy)
@@ -13,11 +13,11 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/sync_ui_util.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/pref_names.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_service.h"
-#include "content/common/notification_type.h"
#include "googleurl/src/gurl.h"
namespace {
@@ -115,7 +115,7 @@
: WebResourceService(profile->GetPrefs(),
PromoResourceService::kDefaultPromoResourceServer,
true, // append locale to URL
- NotificationType::PROMO_RESOURCE_STATE_CHANGED,
+ chrome::NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED,
prefs::kNTPPromoResourceCacheUpdate,
kStartResourceFetchDelay,
kCacheUpdateDelay),
@@ -381,7 +381,7 @@
AppsPromo::SetWebStoreSupportedForLocale(is_webstore_active);
NotificationService::current()->Notify(
- NotificationType::WEB_STORE_PROMO_LOADED,
+ chrome::NOTIFICATION_WEB_STORE_PROMO_LOADED,
Source<PromoResourceService>(this),
NotificationService::NoDetails());
@@ -450,7 +450,7 @@
prefs_->SetDouble(prefs::kNTPCustomLogoStart, logo_start);
prefs_->SetDouble(prefs::kNTPCustomLogoEnd, logo_end);
NotificationService* service = NotificationService::current();
- service->Notify(NotificationType::PROMO_RESOURCE_STATE_CHANGED,
+ service->Notify(chrome::NOTIFICATION_PROMO_RESOURCE_STATE_CHANGED,
Source<WebResourceService>(this),
NotificationService::NoDetails());
}
« no previous file with comments | « chrome/browser/web_resource/gpu_blacklist_updater.cc ('k') | chrome/browser/web_resource/web_resource_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698