summaryrefslogtreecommitdiffstats
path: root/chrome/common/net/url_request_intercept_job.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/net/url_request_intercept_job.cc')
-rw-r--r--chrome/common/net/url_request_intercept_job.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/common/net/url_request_intercept_job.cc b/chrome/common/net/url_request_intercept_job.cc
index 01f4e29..08da43a 100644
--- a/chrome/common/net/url_request_intercept_job.cc
+++ b/chrome/common/net/url_request_intercept_job.cc
@@ -11,6 +11,7 @@
#include "base/message_loop.h"
#include "base/string_util.h"
#include "chrome/common/chrome_plugin_lib.h"
+#include "chrome/common/notification_service.h"
#include "net/base/net_errors.h"
using base::Time;
@@ -31,7 +32,7 @@ URLRequestInterceptJob::URLRequestInterceptJob(URLRequest* request,
cprequest_->data = this; // see FromCPRequest().
NotificationService::current()->AddObserver(
- this, NOTIFY_CHROME_PLUGIN_UNLOADED,
+ this, NotificationType::CHROME_PLUGIN_UNLOADED,
Source<ChromePluginLib>(plugin_));
}
@@ -45,7 +46,7 @@ URLRequestInterceptJob::~URLRequestInterceptJob() {
void URLRequestInterceptJob::DetachPlugin() {
NotificationService::current()->RemoveObserver(
- this, NOTIFY_CHROME_PLUGIN_UNLOADED,
+ this, NotificationType::CHROME_PLUGIN_UNLOADED,
Source<ChromePluginLib>(plugin_));
plugin_ = NULL;
}
@@ -205,7 +206,7 @@ void URLRequestInterceptJob::OnReadCompleted(int bytes_read) {
void URLRequestInterceptJob::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- DCHECK(type == NOTIFY_CHROME_PLUGIN_UNLOADED);
+ DCHECK(type == NotificationType::CHROME_PLUGIN_UNLOADED);
DCHECK(plugin_ == Source<ChromePluginLib>(source).ptr());
DetachPlugin();