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

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

Issue 2200993004: Make TabRestoreService::Entry noncopyable and fix up surrounding code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tab-test-cleanup
Patch Set: Eliminate a use-after-free, Windows build fix Created 4 years, 4 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.h
diff --git a/chrome/browser/win/jumplist.h b/chrome/browser/win/jumplist.h
index 24ca8a54823000b7103fd8ad9257bc91563007b3..738832c4aa54294c2217cf7c083272ea06875975 100644
--- a/chrome/browser/win/jumplist.h
+++ b/chrome/browser/win/jumplist.h
@@ -116,10 +116,10 @@ class JumpList : public sessions::TabRestoreServiceObserver,
// given list.
// These functions are copied from the RecentlyClosedTabsHandler class for
// compatibility with the new-tab page.
- bool AddTab(const sessions::TabRestoreService::Tab* tab,
+ bool AddTab(const sessions::TabRestoreService::Tab& tab,
ShellLinkItemList* list,
size_t max_items);
- void AddWindow(const sessions::TabRestoreService::Window* window,
+ void AddWindow(const sessions::TabRestoreService::Window& window,
ShellLinkItemList* list,
size_t max_items);

Powered by Google App Engine
This is Rietveld 408576698