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

Unified Diff: chrome/browser/win/jumplist_update_util.h

Issue 2896233003: Cancel the JumpList update if top 5 most visited URLs are unchanged (Closed)
Patch Set: Fix nits Created 3 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
« no previous file with comments | « chrome/browser/win/jumplist_file_util.h ('k') | chrome/browser/win/jumplist_update_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist_update_util.h
diff --git a/chrome/browser/win/jumplist_update_util.h b/chrome/browser/win/jumplist_update_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..c5459bc4bc36deb1a45a35bb07e330463f4d9caf
--- /dev/null
+++ b/chrome/browser/win/jumplist_update_util.h
@@ -0,0 +1,17 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_WIN_JUMPLIST_UPDATE_UTIL_H_
+#define CHROME_BROWSER_WIN_JUMPLIST_UPDATE_UTIL_H_
+
+#include "chrome/browser/win/jumplist_updater.h"
+#include "components/history/core/browser/history_types.h"
+
+// Checks if the urls stored in |items| are unchanged compared to the first
+// |max_item_count| urls in |urls|.
+bool MostVisitedItemsUnchanged(const ShellLinkItemList& items,
+ const history::MostVisitedURLList& urls,
+ size_t max_item_count);
+
+#endif // CHROME_BROWSER_WIN_JUMPLIST_UPDATE_UTIL_H_
« no previous file with comments | « chrome/browser/win/jumplist_file_util.h ('k') | chrome/browser/win/jumplist_update_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698