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

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

Issue 2750023002: Incognito icon added to Windows taskbar jumplist. (Closed)
Patch Set: Created 3 years, 9 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/app/theme/chromium/win/incognito.ico ('k') | chrome/common/chrome_icon_resources_win.h » ('j') | 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 c6d518a91bccc2a199d1ed4ca4b291c73e3ea803..6a8454e7dc7fa633797ca47ac2343255bdc5f2e2 100644
--- a/chrome/browser/win/jumplist.cc
+++ b/chrome/browser/win/jumplist.cc
@@ -24,6 +24,7 @@
#include "chrome/browser/sessions/tab_restore_service_factory.h"
#include "chrome/browser/shell_integration_win.h"
#include "chrome/common/chrome_constants.h"
+#include "chrome/common/chrome_icon_resources_win.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
@@ -150,8 +151,7 @@ bool UpdateTaskCategory(
}
// Create an IShellLink object which launches Chrome in incognito mode, and
- // add it to the collection. We use our application icon as the icon for
- // this item.
+ // add it to the collection.
if (incognito_availability != IncognitoModePrefs::DISABLED) {
scoped_refptr<ShellLinkItem> incognito = CreateShellLink();
incognito->GetCommandLine()->AppendSwitch(switches::kIncognito);
@@ -160,7 +160,7 @@ bool UpdateTaskCategory(
base::ReplaceSubstringsAfterOffset(
&incognito_title, 0, L"&", base::StringPiece16());
incognito->set_title(incognito_title);
- incognito->set_icon(chrome_path.value(), icon_index);
+ incognito->set_icon(chrome_path.value(), icon_resources::kIncognitoIndex);
items.push_back(incognito);
}
« no previous file with comments | « chrome/app/theme/chromium/win/incognito.ico ('k') | chrome/common/chrome_icon_resources_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698