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

Unified Diff: chrome/browser/render_process_host.cc

Issue 15010: Implement extension:// protocol. (Closed)
Patch Set: add missing unit test Created 12 years 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
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/common/notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/render_process_host.cc
diff --git a/chrome/browser/render_process_host.cc b/chrome/browser/render_process_host.cc
index dc3f84f7cb9a36cbfbc513a893a35600c13a1722..1efcd58d0df23a9d7fcf8543f9abbdd318fa6a8f 100644
--- a/chrome/browser/render_process_host.cc
+++ b/chrome/browser/render_process_host.cc
@@ -167,7 +167,7 @@ RenderProcessHost::RenderProcessHost(Profile* profile)
profile->GetPrefs()->GetBoolean(prefs::kBlockPopups));
NotificationService::current()->AddObserver(this,
- NOTIFY_NEW_USER_SCRIPTS,
+ NOTIFY_GREASEMONKEY_SCRIPTS_LOADED,
NotificationService::AllSources());
// Note: When we create the RenderProcessHost, it's technically backgrounded,
@@ -191,7 +191,7 @@ RenderProcessHost::~RenderProcessHost() {
profile_->GetPrefs()->RemovePrefObserver(prefs::kBlockPopups, this);
NotificationService::current()->RemoveObserver(this,
- NOTIFY_NEW_USER_SCRIPTS,
+ NOTIFY_GREASEMONKEY_SCRIPTS_LOADED,
NotificationService::AllSources());
}
@@ -819,7 +819,7 @@ void RenderProcessHost::Observe(NotificationType type,
}
break;
}
- case NOTIFY_NEW_USER_SCRIPTS: {
+ case NOTIFY_GREASEMONKEY_SCRIPTS_LOADED: {
base::SharedMemory* shared_memory =
Details<base::SharedMemory>(details).ptr();
DCHECK(shared_memory);
« no previous file with comments | « chrome/browser/profile.cc ('k') | chrome/common/notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698