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

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

Issue 2849113003: Update a few JumpList comments (Closed)
Patch Set: Created 3 years, 8 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/win/jumplist.cc
diff --git a/chrome/browser/win/jumplist.cc b/chrome/browser/win/jumplist.cc
index 74abc8c6c0affafb89b3d9280a6c4d94278756f1..a9e27e77aa8de0baf1e25e1aa45957d14cd94f49 100644
--- a/chrome/browser/win/jumplist.cc
+++ b/chrome/browser/win/jumplist.cc
@@ -73,7 +73,7 @@ constexpr base::TimeDelta kDelayForJumplistUpdate =
constexpr base::TimeDelta kTimeOutForJumplistUpdate =
base::TimeDelta::FromMilliseconds(500);
-// Append the common switches to each shell link.
+// Appends the common switches to each shell link.
void AppendCommonSwitches(ShellLinkItem* shell_link) {
const char* kSwitchNames[] = { switches::kUserDataDir };
const base::CommandLine& command_line =
@@ -83,7 +83,7 @@ void AppendCommonSwitches(ShellLinkItem* shell_link) {
arraysize(kSwitchNames));
}
-// Create a ShellLinkItem preloaded with common switches.
+// Creates a ShellLinkItem preloaded with common switches.
scoped_refptr<ShellLinkItem> CreateShellLink() {
scoped_refptr<ShellLinkItem> link(new ShellLinkItem);
AppendCommonSwitches(link.get());
@@ -504,8 +504,6 @@ void JumpList::TabRestoreServiceChanged(sessions::TabRestoreService* service) {
// The title of the last URL.
// * icon
// An empty string. This value is to be updated in OnFaviconDataAvailable().
- // This code is copied from
- // RecentlyClosedTabsHandler::TabRestoreServiceChanged() to emulate it.
const int kRecentlyClosedCount = 3;
sessions::TabRestoreService* tab_restore_service =
TabRestoreServiceFactory::GetForProfile(profile_);
« no previous file with comments | « chrome/browser/win/jumplist.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698