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

Unified Diff: chrome/browser/profiles/profile_io_data.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
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.cc
===================================================================
--- chrome/browser/profiles/profile_io_data.cc (revision 91968)
+++ chrome/browser/profiles/profile_io_data.cc (working copy)
@@ -29,6 +29,7 @@
#include "chrome/browser/prerender/prerender_manager.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager_backend.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
@@ -93,16 +94,16 @@
explicit ProfileGetter(Profile* profile) : profile_(profile) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
registrar_.Add(this,
- NotificationType::PROFILE_DESTROYED,
+ chrome::NOTIFICATION_PROFILE_DESTROYED,
Source<Profile>(profile_));
}
// NotificationObserver implementation.
- void Observe(NotificationType type,
+ void Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- if (NotificationType::PROFILE_DESTROYED == type) {
+ if (chrome::NOTIFICATION_PROFILE_DESTROYED == type) {
Profile* profile = Source<Profile>(source).ptr();
if (profile_ == profile)
profile_ = NULL;
@@ -134,7 +135,7 @@
if (profile_getter_->get()) {
ChromeCookieDetails cookie_details(&cookie, removed, cause);
NotificationService::current()->Notify(
- NotificationType::COOKIE_CHANGED,
+ chrome::NOTIFICATION_COOKIE_CHANGED,
Source<Profile>(profile_getter_->get()),
Details<ChromeCookieDetails>(&cookie_details));
}
« no previous file with comments | « chrome/browser/profiles/profile_info_cache.cc ('k') | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698