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

Issue 11359133: Add default icon to app_host.exe, and use it in shortcuts during installation. (Closed)

Created:
8 years, 1 month ago by huangs
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Aaron Boodman, grt+watch_chromium.org, chromium-apps-reviews_chromium.org, benwells
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add default icon to app_host.exe, and use it in shortcuts during installation. BUG=151626 TBR=ben@ Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=168722

Patch Set 1 #

Total comments: 7

Patch Set 2 : Clean up to get Program and Features uninstall icon to work more generally. #

Total comments: 29

Patch Set 3 : Renaming and cleanups. #

Total comments: 2

Patch Set 4 : Fix .gypi for new file. #

Total comments: 27

Patch Set 5 : More renames and comments. #

Total comments: 8

Patch Set 6 : Fixing comments. #

Total comments: 4

Patch Set 7 : Small comment change. #

Total comments: 6

Patch Set 8 : Comment fixes to .rc file, and prefixing icon id with IDI_. #

Total comments: 8

Patch Set 9 : Fixing comments; renaming. #

Total comments: 2

Patch Set 10 : Renaming GetChromiumIconString() => GetChromiumIconLocation(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -54 lines) Patch
M chrome/browser/extensions/app_host/app_host.rc View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/app_host/app_host_resource.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/shell_integration.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/shell_integration_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -9 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -6 lines 0 comments Download
M chrome/installer/util/browser_distribution.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/browser_distribution.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/installer/util/chrome_app_host_distribution.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/installer/util/chrome_app_host_distribution.cc View 1 2 3 4 2 chunks +2 lines, -7 lines 0 comments Download
M chrome/installer/util/chrome_app_host_operations.cc View 1 2 3 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/installer/util/chrome_frame_distribution.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/chrome_frame_distribution.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/google_chrome_distribution_dummy.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -6 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
huangs
The icon is also found in chrome.exe (index 5), which is used by app_list_control_win.cc . ...
8 years, 1 month ago (2012-11-09 17:24:32 UTC) #1
gab
I don't know much about resources, +grt Thanks, Gab http://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc File chrome/installer/util/chrome_app_host_distribution.cc (right): http://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc#newcode138 chrome/installer/util/chrome_app_host_distribution.cc:138: ...
8 years, 1 month ago (2012-11-09 19:29:28 UTC) #2
erikwright (departed)
http://codereview.chromium.org/11359133/diff/1/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): http://codereview.chromium.org/11359133/diff/1/chrome/browser/extensions/app_host/app_host.rc#newcode33 chrome/browser/extensions/app_host/app_host.rc:33: // Note: chrome/installer/util/shell_util.cc depends on the order and number ...
8 years, 1 month ago (2012-11-09 21:46:25 UTC) #3
huangs
Now doing this properly by introducing and using BrowserDistribution::GetIconIndex(). PTAL. https://codereview.chromium.org/11359133/diff/1/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): https://codereview.chromium.org/11359133/diff/1/chrome/browser/extensions/app_host/app_host.rc#newcode33 ...
8 years, 1 month ago (2012-11-12 20:00:29 UTC) #4
benwells
(removing myself from reviewer list, I'll defer to erikwright@ and grt@) https://codereview.chromium.org/11359133/diff/6001/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): ...
8 years, 1 month ago (2012-11-13 05:52:56 UTC) #5
gab
Initial comments. @grt: I only need you to take a look at the .rc file, ...
8 years, 1 month ago (2012-11-13 14:15:12 UTC) #6
erikwright (departed)
gab: PTAL. https://codereview.chromium.org/11359133/diff/6001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/11359133/diff/6001/chrome/installer/setup/install_worker.cc#newcode627 chrome/installer/setup/install_worker.cc:627: dist, install_path.Append(dist->GetIconExe()).value()); gab: This callsite is the ...
8 years, 1 month ago (2012-11-13 14:55:34 UTC) #7
grt (UTC plus 2)
i don't see a problem with putting the name of the file that holds the ...
8 years, 1 month ago (2012-11-13 16:19:32 UTC) #8
erikwright (departed)
On Tue, Nov 13, 2012 at 11:19 AM, <grt@chromium.org> wrote: > i don't see a ...
8 years, 1 month ago (2012-11-13 16:24:43 UTC) #9
grt (UTC plus 2)
On 2012/11/13 16:24:43, erikwright wrote: > On Tue, Nov 13, 2012 at 11:19 AM, <mailto:grt@chromium.org> ...
8 years, 1 month ago (2012-11-13 16:48:06 UTC) #10
huangs
PTAL. https://codereview.chromium.org/11359133/diff/6001/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): https://codereview.chromium.org/11359133/diff/6001/chrome/browser/extensions/app_host/app_host.rc#newcode38 chrome/browser/extensions/app_host/app_host.rc:38: IDR_MAINFRAME ICON "..\\..\\..\\app\\theme\\app_list.ico" On 2012/11/13 16:19:32, grt wrote: ...
8 years, 1 month ago (2012-11-13 20:41:54 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/11359133/diff/6001/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): https://codereview.chromium.org/11359133/diff/6001/chrome/browser/extensions/app_host/app_host.rc#newcode38 chrome/browser/extensions/app_host/app_host.rc:38: IDR_MAINFRAME ICON "..\\..\\..\\app\\theme\\app_list.ico" On 2012/11/13 20:41:54, huangs1 wrote: > ...
8 years, 1 month ago (2012-11-14 15:55:14 UTC) #12
huangs
PTAL. https://codereview.chromium.org/11359133/diff/6001/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): https://codereview.chromium.org/11359133/diff/6001/chrome/browser/extensions/app_host/app_host.rc#newcode38 chrome/browser/extensions/app_host/app_host.rc:38: IDR_MAINFRAME ICON "..\\..\\..\\app\\theme\\app_list.ico" I meant \c, \g, \v ...
8 years, 1 month ago (2012-11-14 17:59:15 UTC) #13
grt (UTC plus 2)
https://codereview.chromium.org/11359133/diff/6001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/11359133/diff/6001/chrome/browser/shell_integration_win.cc#newcode438 chrome/browser/shell_integration_win.cc:438: app_path.value()); On 2012/11/14 15:55:14, grt wrote: > On 2012/11/13 ...
8 years, 1 month ago (2012-11-14 18:31:09 UTC) #14
gab
Some comments below. I agree with other comments by grt. Cheers, Gab https://codereview.chromium.org/11359133/diff/8004/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc ...
8 years, 1 month ago (2012-11-14 18:47:32 UTC) #15
huangs
PTAL. https://codereview.chromium.org/11359133/diff/6001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): https://codereview.chromium.org/11359133/diff/6001/chrome/browser/shell_integration_win.cc#newcode438 chrome/browser/shell_integration_win.cc:438: app_path.value()); On 2012/11/14 18:31:09, grt wrote: > On ...
8 years, 1 month ago (2012-11-14 20:35:55 UTC) #16
gab
Looks great, last comments. https://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc File chrome/installer/util/chrome_app_host_distribution.cc (right): https://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc#newcode138 chrome/installer/util/chrome_app_host_distribution.cc:138: return 0; On 2012/11/12 20:00:30, ...
8 years, 1 month ago (2012-11-14 21:34:33 UTC) #17
huangs
PTAL. https://codereview.chromium.org/11359133/diff/7013/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://codereview.chromium.org/11359133/diff/7013/chrome/browser/shell_integration.h#newcode149 chrome/browser/shell_integration.h:149: // Returns the path to the Chromium icon. ...
8 years, 1 month ago (2012-11-14 21:57:01 UTC) #18
gab
Pinging some unaddressed comments. https://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc File chrome/installer/util/chrome_app_host_distribution.cc (right): https://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc#newcode138 chrome/installer/util/chrome_app_host_distribution.cc:138: return 0; On 2012/11/14 21:34:34, ...
8 years, 1 month ago (2012-11-14 23:47:07 UTC) #19
huangs
Replied to the missed comments, but have small change. PTAL. https://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc File chrome/installer/util/chrome_app_host_distribution.cc (right): https://codereview.chromium.org/11359133/diff/1/chrome/installer/util/chrome_app_host_distribution.cc#newcode138 ...
8 years, 1 month ago (2012-11-15 00:06:38 UTC) #20
gab
LGTM w/ single nit below. Please wait for grt's lgtm for chrome/browser/extensions/app_host/app_host.rc and chrome/browser/extensions/app_host/app_host_resource.h Thanks! ...
8 years, 1 month ago (2012-11-15 15:04:07 UTC) #21
huangs
https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/installer/setup/install_worker.cc#newcode627 chrome/installer/setup/install_worker.cc:627: dist->GetIconIndex()); On 2012/11/15 15:04:07, gab wrote: > nit: indent ...
8 years, 1 month ago (2012-11-15 16:05:19 UTC) #22
gab
https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/installer/setup/install_worker.cc#newcode627 chrome/installer/setup/install_worker.cc:627: dist->GetIconIndex()); On 2012/11/15 16:05:19, huangs1 wrote: > On 2012/11/15 ...
8 years, 1 month ago (2012-11-15 16:24:16 UTC) #23
erikwright (departed)
https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/browser/extensions/app_host/app_host.rc#newcode34 chrome/browser/extensions/app_host/app_host.rc:34: // Note: chrome/installer/util/shell_util.cc depends on the order and number ...
8 years, 1 month ago (2012-11-15 16:35:11 UTC) #24
huangs
PTAL. https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/browser/extensions/app_host/app_host.rc File chrome/browser/extensions/app_host/app_host.rc (right): https://chromiumcodereview.appspot.com/11359133/diff/45/chrome/browser/extensions/app_host/app_host.rc#newcode34 chrome/browser/extensions/app_host/app_host.rc:34: // Note: chrome/installer/util/shell_util.cc depends on the order and ...
8 years, 1 month ago (2012-11-15 16:51:39 UTC) #25
erikwright (departed)
LGTM. Please let grt verify the resource files.
8 years, 1 month ago (2012-11-15 16:58:38 UTC) #26
grt (UTC plus 2)
resource stuff lgtm. please load the resulting binary in VS to verify that the icon ...
8 years, 1 month ago (2012-11-16 05:05:03 UTC) #27
huangs
PTAL. https://chromiumcodereview.appspot.com/11359133/diff/18021/chrome/browser/shell_integration.h File chrome/browser/shell_integration.h (right): https://chromiumcodereview.appspot.com/11359133/diff/18021/chrome/browser/shell_integration.h#newcode149 chrome/browser/shell_integration.h:149: // Returns the string to the Chromium icon, ...
8 years, 1 month ago (2012-11-16 17:08:17 UTC) #28
grt (UTC plus 2)
did you load the resulting binary in VS to verify that the icon has the ...
8 years, 1 month ago (2012-11-16 21:05:26 UTC) #29
grt (UTC plus 2)
oh, lgtm with the final naming change assuming that you've verified the resources. On 2012/11/16 ...
8 years, 1 month ago (2012-11-16 21:06:21 UTC) #30
huangs
Only rename is done. Note that I resynched, so browser.cc has bogus changes. PTAL. https://chromiumcodereview.appspot.com/11359133/diff/28001/chrome/browser/shell_integration.h ...
8 years, 1 month ago (2012-11-16 22:04:56 UTC) #31
huangs
Also verified in VC that the icon ID is 101.
8 years, 1 month ago (2012-11-16 22:07:26 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/11359133/27002
8 years, 1 month ago (2012-11-16 22:09:09 UTC) #33
commit-bot: I haz the power
Presubmit check for 11359133-27002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 1 month ago (2012-11-16 22:09:18 UTC) #34
huangs
Adding ben@ for OWNER review. PTAL.
8 years, 1 month ago (2012-11-17 01:04:39 UTC) #35
erikwright (departed)
adding correct Ben. Ben, PTAL for chrome_browser_extensions.gypi (adding a resources header to app_host.exe) and c/b/ui/browser.cc ...
8 years, 1 month ago (2012-11-17 01:08:16 UTC) #36
huangs
TBRing ben@ for trivial GYP and API rename.
8 years, 1 month ago (2012-11-19 20:22:04 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/11359133/27002
8 years, 1 month ago (2012-11-19 20:22:46 UTC) #38
commit-bot: I haz the power
Retried try job too often for step(s) interactive_ui_tests
8 years, 1 month ago (2012-11-19 21:41:53 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/11359133/27002
8 years, 1 month ago (2012-11-20 04:12:48 UTC) #40
commit-bot: I haz the power
Change committed as 168722
8 years, 1 month ago (2012-11-20 04:13:58 UTC) #41
Ben Goodger (Google)
8 years, 1 month ago (2012-11-20 21:07:15 UTC) #42
lgtm.

Powered by Google App Engine
This is Rietveld 408576698