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

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: Responded to comments, simplified file format. 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 ac869eb64697d21df4fab9bf2c0b313e6654ba09..fc94df38bf6594559ceb6057bae9bdb7ca00d20a 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -475,6 +475,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(
@@ -553,6 +557,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