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

Unified Diff: chrome/browser/tab_contents/chrome_interstitial_page.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/tab_contents/chrome_interstitial_page.cc
===================================================================
--- chrome/browser/tab_contents/chrome_interstitial_page.cc (revision 91968)
+++ chrome/browser/tab_contents/chrome_interstitial_page.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/dom_operation_notification_details.h"
#include "chrome/browser/renderer_preferences_util.h"
+#include "chrome/common/chrome_notification_types.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/common/notification_service.h"
#include "content/common/notification_source.h"
@@ -26,14 +27,15 @@
void ChromeInterstitialPage::Show() {
InterstitialPage::Show();
- notification_registrar_.Add(this, NotificationType::DOM_OPERATION_RESPONSE,
+ notification_registrar_.Add(
+ this, chrome::NOTIFICATION_DOM_OPERATION_RESPONSE,
Source<RenderViewHost>(render_view_host()));
}
-void ChromeInterstitialPage::Observe(NotificationType type,
+void ChromeInterstitialPage::Observe(int type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (NotificationType::DOM_OPERATION_RESPONSE == type.value) {
+ if (chrome::NOTIFICATION_DOM_OPERATION_RESPONSE == type) {
if (enabled()) {
Details<DomOperationNotificationDetails> dom_op_details(details);
CommandReceived(dom_op_details->json());
« no previous file with comments | « chrome/browser/tab_contents/chrome_interstitial_page.h ('k') | chrome/browser/tab_contents/infobar_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698