Index: chrome/browser/chromeos/offline/offline_load_page.cc |
=================================================================== |
--- chrome/browser/chromeos/offline/offline_load_page.cc (revision 91880) |
+++ chrome/browser/chromeos/offline/offline_load_page.cc (working copy) |
@@ -24,8 +24,8 @@ |
#include "content/browser/tab_contents/navigation_controller.h" |
#include "content/browser/tab_contents/navigation_entry.h" |
#include "content/browser/tab_contents/tab_contents.h" |
+#include "content/common/content_notification_types.h" |
#include "content/common/notification_service.h" |
-#include "content/common/notification_type.h" |
#include "grit/browser_resources.h" |
#include "grit/generated_resources.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -71,7 +71,7 @@ |
proceeded_(false), |
ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)), |
in_test_(false) { |
- registrar_.Add(this, NotificationType::NETWORK_STATE_CHANGED, |
+ registrar_.Add(this, chrome::NETWORK_STATE_CHANGED, |
NotificationService::AllSources()); |
} |
@@ -198,17 +198,17 @@ |
InterstitialPage::DontProceed(); |
} |
-void OfflineLoadPage::Observe(NotificationType type, |
+void OfflineLoadPage::Observe(int type, |
const NotificationSource& source, |
const NotificationDetails& details) { |
- if (type.value == NotificationType::NETWORK_STATE_CHANGED) { |
+ if (type == chrome::NETWORK_STATE_CHANGED) { |
chromeos::NetworkStateDetails* state_details = |
Details<chromeos::NetworkStateDetails>(details).ptr(); |
DVLOG(1) << "NetworkStateChanaged notification received: state=" |
<< state_details->state(); |
if (state_details->state() == |
chromeos::NetworkStateDetails::CONNECTED) { |
- registrar_.Remove(this, NotificationType::NETWORK_STATE_CHANGED, |
+ registrar_.Remove(this, chrome::NETWORK_STATE_CHANGED, |
NotificationService::AllSources()); |
Proceed(); |
} |