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

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: Add unittest 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
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..8dab9b8c7df1c0c899a77463c5ab89b5f5535da6
--- /dev/null
+++ b/chrome/browser/win/jumplist_update_util.h
@@ -0,0 +1,17 @@
+// Copyright (c) 2017 The Chromium Authors. All rights reserved.
grt (UTC plus 2) 2017/05/30 08:51:42 nit: omit "(c)" (https://chromium.googlesource.com
chengx 2017/05/30 19:37:02 Done. I also removed "(c)" for other header files.
+// 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
+// |most_visited_items| urls in |urls|.
+bool MostVisitedItemsUnchanged(const ShellLinkItemList& items,
+ const history::MostVisitedURLList& urls,
+ size_t most_visited_items);
+
+#endif // CHROME_BROWSER_WIN_JUMPLIST_UPDATE_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698