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

Issue 7273052: Install from disk image: Create persistent Dock icon (Closed)

Created:
9 years, 5 months ago by Mark Mentovai
Modified:
9 years, 5 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews
Visibility:
Public.

Description

Install from disk image: Create persistent Dock icon. When installing from the disk image, Chrome now places itself in the Dock, as though the user had placed it there as a "persistent" tile. Users can reach this feature by dragging an icon directly to the Dock or by choosing "Keep in Dock" from an icon's contextual menu. BUG=87623 TEST=Install from disk image. A new persistent Dock tile should be created under the conditions specified in the comment for install_from_dmg.mm AddDockIcon. If any changes are made to the Dock, the Dock should be restarted. The installed application should launch immediately following this. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91156

Patch Set 1 #

Total comments: 17

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+485 lines, -2 lines) Patch
M chrome/browser/mac/install_from_dmg.mm View 1 2 3 5 chunks +303 lines, -2 lines 0 comments Download
A chrome/browser/mac/launchd.h View 1 1 chunk +18 lines, -0 lines 0 comments Download
A chrome/browser/mac/launchd.cc View 1 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/mac/scoped_launch_data.h View 1 1 chunk +74 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mark Mentovai
9 years, 5 months ago (2011-06-28 22:33:09 UTC) #1
Robert Sesek
http://codereview.chromium.org/7273052/diff/1/chrome/browser/mac/install_from_dmg.mm File chrome/browser/mac/install_from_dmg.mm (right): http://codereview.chromium.org/7273052/diff/1/chrome/browser/mac/install_from_dmg.mm#newcode459 chrome/browser/mac/install_from_dmg.mm:459: LOG(ERROR) << "Too many items in the Dock"; srsly? ...
9 years, 5 months ago (2011-06-29 18:26:42 UTC) #2
Mark Mentovai
OK, ready. http://codereview.chromium.org/7273052/diff/1/chrome/browser/mac/install_from_dmg.mm File chrome/browser/mac/install_from_dmg.mm (right): http://codereview.chromium.org/7273052/diff/1/chrome/browser/mac/install_from_dmg.mm#newcode457 chrome/browser/mac/install_from_dmg.mm:457: int count = static_cast<int>([persistent_app_paths count]); I only ...
9 years, 5 months ago (2011-06-29 19:29:29 UTC) #3
Robert Sesek
http://codereview.chromium.org/7273052/diff/11008/chrome/browser/mac/install_from_dmg.mm File chrome/browser/mac/install_from_dmg.mm (right): http://codereview.chromium.org/7273052/diff/11008/chrome/browser/mac/install_from_dmg.mm#newcode486 chrome/browser/mac/install_from_dmg.mm:486: const NSUInteger kNotFound = -1; Why not use NSNotFound?
9 years, 5 months ago (2011-06-30 15:49:52 UTC) #4
Mark Mentovai
http://codereview.chromium.org/7273052/diff/11008/chrome/browser/mac/install_from_dmg.mm File chrome/browser/mac/install_from_dmg.mm (right): http://codereview.chromium.org/7273052/diff/11008/chrome/browser/mac/install_from_dmg.mm#newcode486 chrome/browser/mac/install_from_dmg.mm:486: const NSUInteger kNotFound = -1; rsesek wrote: > Why ...
9 years, 5 months ago (2011-06-30 15:53:58 UTC) #5
Robert Sesek
LGTM
9 years, 5 months ago (2011-06-30 15:54:34 UTC) #6
Mark Mentovai
9 years, 5 months ago (2011-06-30 16:02:41 UTC) #7
http://codereview.chromium.org/7273052/diff/11008/chrome/browser/mac/install_...
File chrome/browser/mac/install_from_dmg.mm (right):

http://codereview.chromium.org/7273052/diff/11008/chrome/browser/mac/install_...
chrome/browser/mac/install_from_dmg.mm:486: const NSUInteger kNotFound = -1;
I wrote:
> rsesek wrote:
> > Why not use NSNotFound?
> 
> Because that’s LONG_MAX or 0x7fffffff (32-bit).

But that doesn’t matter, I guess I just had -1 in mind as my magic value. I’ll
use NSNotFound.

Powered by Google App Engine
This is Rietveld 408576698