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

Unified Diff: chrome/browser/ui/webui/options/handler_options_handler.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/ui/webui/options/handler_options_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/handler_options_handler.cc (revision 91968)
+++ chrome/browser/ui/webui/options/handler_options_handler.cc (working copy)
@@ -10,6 +10,7 @@
#include "base/values.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/chrome_notification_types.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
@@ -41,7 +42,7 @@
void HandlerOptionsHandler::Initialize() {
UpdateHandlerList();
notification_registrar_.Add(
- this, NotificationType::PROTOCOL_HANDLER_REGISTRY_CHANGED,
+ this, chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED,
NotificationService::AllSources());
}
@@ -156,10 +157,10 @@
title);
}
-void HandlerOptionsHandler::Observe(NotificationType type,
+void HandlerOptionsHandler::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::PROTOCOL_HANDLER_REGISTRY_CHANGED)
+ if (type == chrome::NOTIFICATION_PROTOCOL_HANDLER_REGISTRY_CHANGED)
UpdateHandlerList();
else
NOTREACHED();
Property changes on: chrome\browser\ui\webui\options\handler_options_handler.cc
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/ui/webui/options/handler_options_handler.h ('k') | chrome/browser/ui/webui/options/options_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698