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

Unified Diff: components/enhanced_bookmarks/bookmark_server_service.cc

Issue 539173004: Bring up of the enhanced bookmarks cluster service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@intermediary2
Patch Set: micro-nit Created 6 years, 2 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: components/enhanced_bookmarks/bookmark_server_service.cc
diff --git a/components/enhanced_bookmarks/bookmark_server_service.cc b/components/enhanced_bookmarks/bookmark_server_service.cc
index b6bd5833ca84001a409a85ed8a99375ed54ae918..08217a2bcd55def00c9e35d9b48dc930603bcc8f 100644
--- a/components/enhanced_bookmarks/bookmark_server_service.cc
+++ b/components/enhanced_bookmarks/bookmark_server_service.cc
@@ -48,11 +48,7 @@ void BookmarkServerService::RemoveObserver(
const BookmarkNode* BookmarkServerService::BookmarkForRemoteId(
const std::string& remote_id) const {
- std::map<std::string, const BookmarkNode*>::const_iterator it =
- starsid_to_bookmark_.find(remote_id);
- if (it == starsid_to_bookmark_.end())
- return NULL;
- return it->second;
+ return model_->BookmarkForRemoteId(remote_id);
}
const std::string BookmarkServerService::RemoteIDForBookmark(
@@ -91,7 +87,8 @@ void BookmarkServerService::OnGetTokenSuccess(
const OAuth2TokenService::Request* request,
const std::string& access_token,
const base::Time& expiration_time) {
- url_fetcher_.reset(CreateFetcher());
+ url_fetcher_ = CreateFetcher();
+
// Free the token request.
token_request_.reset();
« no previous file with comments | « components/enhanced_bookmarks/bookmark_server_service.h ('k') | components/enhanced_bookmarks/enhanced_bookmark_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698