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

Side by Side Diff: components/bookmarks/core/browser/bookmark_model.cc

Issue 277893002: Cleaned up includes and unused declarations in the bookmarks component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/bookmarks/core/browser/bookmark_model.h" 5 #include "components/bookmarks/core/browser/bookmark_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 node->InvalidateFavicon(); 424 node->InvalidateFavicon();
425 CancelPendingFaviconLoadRequests(node); 425 CancelPendingFaviconLoadRequests(node);
426 FOR_EACH_OBSERVER(BookmarkModelObserver, 426 FOR_EACH_OBSERVER(BookmarkModelObserver,
427 observers_, 427 observers_,
428 BookmarkNodeFaviconChanged(this, node)); 428 BookmarkNodeFaviconChanged(this, node));
429 } 429 }
430 } 430 }
431 } 431 }
432 432
433 void BookmarkModel::SetDateAdded(const BookmarkNode* node, 433 void BookmarkModel::SetDateAdded(const BookmarkNode* node,
434 base::Time date_added) { 434 Time date_added) {
435 if (!node) { 435 if (!node) {
436 NOTREACHED(); 436 NOTREACHED();
437 return; 437 return;
438 } 438 }
439 439
440 if (node->date_added() == date_added) 440 if (node->date_added() == date_added)
441 return; 441 return;
442 442
443 if (is_permanent_node(node)) { 443 if (is_permanent_node(node)) {
444 NOTREACHED(); 444 NOTREACHED();
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 CreatePermanentNode(BookmarkNode::OTHER_NODE); 940 CreatePermanentNode(BookmarkNode::OTHER_NODE);
941 BookmarkPermanentNode* mobile_node = 941 BookmarkPermanentNode* mobile_node =
942 CreatePermanentNode(BookmarkNode::MOBILE); 942 CreatePermanentNode(BookmarkNode::MOBILE);
943 return scoped_ptr<BookmarkLoadDetails>(new BookmarkLoadDetails( 943 return scoped_ptr<BookmarkLoadDetails>(new BookmarkLoadDetails(
944 bb_node, 944 bb_node,
945 other_node, 945 other_node,
946 mobile_node, 946 mobile_node,
947 new BookmarkIndex(client_, index_urls_, accept_languages), 947 new BookmarkIndex(client_, index_urls_, accept_languages),
948 next_node_id_)); 948 next_node_id_));
949 } 949 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698