| Index: chrome/test/testing_profile.h | 
| diff --git a/chrome/test/testing_profile.h b/chrome/test/testing_profile.h | 
| index fc561d44b2846c1e4c1acbe0bb3a3248c6a3df01..8464a8a84791b1ed87b7fd6dc00a3dc302c67213 100644 | 
| --- a/chrome/test/testing_profile.h | 
| +++ b/chrome/test/testing_profile.h | 
| @@ -84,6 +84,10 @@ class TestingProfile : public Profile { | 
| // AutocompleteClassifier is NULL. | 
| void CreateAutocompleteClassifier(); | 
|  | 
| +  // Creates a ProtocolHandlerRegistry. If not invoked the protocol handler | 
| +  // registry is NULL. | 
| +  void CreateProtocolHandlerRegistry(); | 
| + | 
| // Creates the webdata service.  If |delete_file| is true, the webdata file is | 
| // deleted first, then the WebDataService is created.  As TestingProfile | 
| // deletes the directory containing the files used by WebDataService, this | 
| @@ -266,6 +270,9 @@ class TestingProfile : public Profile { | 
| virtual BookmarkModel* GetBookmarkModel() { | 
| return bookmark_bar_model_.get(); | 
| } | 
| +  virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() { | 
| +    return protocol_handler_registry_.get(); | 
| +  } | 
| virtual bool IsSameProfile(Profile *p) { return this == p; } | 
| virtual base::Time GetStartTime() const { return start_time_; } | 
| virtual TabRestoreService* GetTabRestoreService() { return NULL; } | 
| @@ -277,6 +284,7 @@ class TestingProfile : public Profile { | 
| virtual void MarkAsCleanShutdown() {} | 
| virtual void InitExtensions() {} | 
| virtual void InitWebResources() {} | 
| +  virtual void InitRegisteredProtocolHandlers() {} | 
| virtual NTPResourceCache* GetNTPResourceCache(); | 
|  | 
| virtual DesktopNotificationService* GetDesktopNotificationService(); | 
| @@ -349,6 +357,9 @@ class TestingProfile : public Profile { | 
| // The BookmarkModel. Only created if CreateBookmarkModel is invoked. | 
| scoped_ptr<BookmarkModel> bookmark_bar_model_; | 
|  | 
| +  // The ProtocolHandlerRegistry. Only created if CreateProtocolHandlerRegistry is invoked. | 
| +  scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; | 
| + | 
| // The TokenService. Created by CreateTokenService. Filled with dummy data. | 
| scoped_ptr<TokenService> token_service_; | 
|  | 
|  |