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

Unified Diff: chrome/browser/extensions/extension_cookies_api.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/extensions/extension_cookies_api.cc
===================================================================
--- chrome/browser/extensions/extension_cookies_api.cc (revision 91968)
+++ chrome/browser/extensions/extension_cookies_api.cc (working copy)
@@ -14,11 +14,11 @@
#include "chrome/browser/extensions/extension_event_router.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_list.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
#include "chrome/common/extensions/extension_error_utils.h"
#include "content/browser/browser_thread.h"
#include "content/common/notification_service.h"
-#include "content/common/notification_type.h"
#include "net/base/cookie_monster.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
@@ -33,19 +33,19 @@
void ExtensionCookiesEventRouter::Init() {
CHECK(registrar_.IsEmpty());
registrar_.Add(this,
- NotificationType::COOKIE_CHANGED,
+ chrome::NOTIFICATION_COOKIE_CHANGED,
NotificationService::AllSources());
}
-void ExtensionCookiesEventRouter::Observe(NotificationType type,
+void ExtensionCookiesEventRouter::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
Profile* profile = Source<Profile>(source).ptr();
if (!profile_->IsSameProfile(profile)) {
return;
}
- switch (type.value) {
- case NotificationType::COOKIE_CHANGED:
+ switch (type) {
+ case chrome::NOTIFICATION_COOKIE_CHANGED:
CookieChanged(
profile,
Details<ChromeCookieDetails>(details).ptr());
« no previous file with comments | « chrome/browser/extensions/extension_cookies_api.h ('k') | chrome/browser/extensions/extension_debugger_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698