Index: components/enhanced_bookmarks/bookmark_server_service.h |
diff --git a/components/enhanced_bookmarks/bookmark_server_service.h b/components/enhanced_bookmarks/bookmark_server_service.h |
index d8cba89b66fcf39f04b0141b13e844779fe73060..42e848dad699e68fb645f3317946c4199112a91f 100644 |
--- a/components/enhanced_bookmarks/bookmark_server_service.h |
+++ b/components/enhanced_bookmarks/bookmark_server_service.h |
@@ -47,7 +47,7 @@ class BookmarkServerService : protected net::URLFetcherDelegate, |
EnhancedBookmarkModel* enhanced_bookmark_model); |
virtual ~BookmarkServerService(); |
- void AddObserver(BookmarkServerServiceObserver* observer); |
+ virtual void AddObserver(BookmarkServerServiceObserver* observer); |
void RemoveObserver(BookmarkServerServiceObserver* observer); |
protected: |
@@ -84,6 +84,10 @@ class BookmarkServerService : protected net::URLFetcherDelegate, |
// Cached pointer to the bookmarks model. |
EnhancedBookmarkModel* model_; // weak |
+ protected: |
+ // The observers. |
+ ObserverList<BookmarkServerServiceObserver> observers_; |
+ |
private: |
FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, Cluster); |
FRIEND_TEST_ALL_PREFIXES(BookmarkServerServiceTest, SignOut); |
@@ -100,8 +104,6 @@ class BookmarkServerService : protected net::URLFetcherDelegate, |
virtual void OnGetTokenFailure(const OAuth2TokenService::Request* request, |
const GoogleServiceAuthError& error) override; |
- // The observers. |
- ObserverList<BookmarkServerServiceObserver> observers_; |
// The Auth service is used to get a token for auth with the server. |
ProfileOAuth2TokenService* token_service_; // Weak |
// The request to the token service. |