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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 6410115: Adds navigator.registerProtocolHandler. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Sync'd, disallow non-same origin rph, adds hostname to the infobar. Created 9 years, 10 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index 52944ffb95caf75c25adad5586acf52082eb6e25..0443d9c0ea624d99262d4221e7e90aa80b0ccc42 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -487,6 +487,10 @@ class OffTheRecordProfileImpl : public Profile,
return profile_->GetBookmarkModel();
}
+ virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() {
+ return profile_->GetProtocolHandlerRegistry();
+ }
+
virtual DesktopNotificationService* GetDesktopNotificationService() {
if (!desktop_notification_service_.get()) {
desktop_notification_service_.reset(new DesktopNotificationService(
@@ -565,6 +569,10 @@ class OffTheRecordProfileImpl : public Profile,
NOTREACHED();
}
+ virtual void InitRegisteredProtocolHandlers() {
+ NOTREACHED();
+ }
+
virtual NTPResourceCache* GetNTPResourceCache() {
// Just return the real profile resource cache.
return profile_->GetNTPResourceCache();

Powered by Google App Engine
This is Rietveld 408576698