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

Unified Diff: components/bookmarks/core/browser/bookmark_utils.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 side-by-side diff with in-line comments
Download patch
Index: components/bookmarks/core/browser/bookmark_utils.cc
diff --git a/components/bookmarks/core/browser/bookmark_utils.cc b/components/bookmarks/core/browser/bookmark_utils.cc
index 9877b2f989a42785a1435d7b590ae47b74300013..b7e9a17b95a8bbc05f2c06a2f43f88a4a31997a8 100644
--- a/components/bookmarks/core/browser/bookmark_utils.cc
+++ b/components/bookmarks/core/browser/bookmark_utils.cc
@@ -12,7 +12,6 @@
#include "base/i18n/string_search.h"
#include "base/metrics/user_metrics_action.h"
#include "base/prefs/pref_service.h"
-#include "base/strings/string16.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#include "components/bookmarks/core/browser/bookmark_model.h"
@@ -38,7 +37,7 @@ void CloneBookmarkNodeImpl(BookmarkModel* model,
int index_to_add_at,
bool reset_node_times) {
if (element.is_url) {
- base::Time date_added = reset_node_times ? Time::Now() : element.date_added;
+ Time date_added = reset_node_times ? Time::Now() : element.date_added;
DCHECK(!date_added.is_null());
model->AddURLWithCreationTimeAndMetaInfo(parent,
@@ -219,7 +218,7 @@ std::vector<const BookmarkNode*> GetMostRecentlyModifiedFolders(
while (iterator.has_next()) {
const BookmarkNode* parent = iterator.Next();
- if (parent->is_folder() && parent->date_folder_modified() > base::Time()) {
+ if (parent->is_folder() && parent->date_folder_modified() > Time()) {
if (max_count == 0) {
nodes.push_back(parent);
} else {

Powered by Google App Engine
This is Rietveld 408576698