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

Unified Diff: chrome/browser/chromeos/offline/offline_load_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/chromeos/offline/offline_load_page.cc
===================================================================
--- chrome/browser/chromeos/offline/offline_load_page.cc (revision 91771)
+++ chrome/browser/chromeos/offline/offline_load_page.cc (working copy)
@@ -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());
}
@@ -201,14 +201,14 @@
void OfflineLoadPage::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type.value == NotificationType::NETWORK_STATE_CHANGED) {
+ if (type.value == 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();
}

Powered by Google App Engine
This is Rietveld 408576698