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

Issue 10826144: Delete both regular and Metro user data dirs on uninstall. (Closed)

Created:
8 years, 4 months ago by grt (UTC plus 2)
Modified:
8 years, 4 months ago
Reviewers:
gab
CC:
chromium-reviews, grt+watch_chromium.org, chrome-win8-eng_google.com
Visibility:
Public.

Description

Delete both regular and Metro user data dirs on uninstall. Also: - The uninstall survey will use the metro Chrome local state if there is no desktop Chrome local state (although in the future we maybe want to aggregate them). - Chrome inactivity for toast purposes is now based on the most-recently used of both desktop and metro Chrome. BUG=125793 TEST=install chrome, make it the default, launch into metro at least once, quit, then uninstall and check the "also clear..." box. Metro data dir should be gone. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149968

Patch Set 1 #

Total comments: 21

Patch Set 2 : factored in gab's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -54 lines) Patch
M chrome/installer/setup/uninstall.cc View 1 4 chunks +40 lines, -30 lines 0 comments Download
M chrome/installer/util/auto_launch_util.cc View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/installer/util/google_chrome_distribution.cc View 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/installer/util/helper.h View 3 chunks +12 lines, -6 lines 0 comments Download
M chrome/installer/util/helper.cc View 1 3 chunks +19 lines, -3 lines 0 comments Download
M chrome/installer/util/product.h View 1 chunk +9 lines, -5 lines 0 comments Download
M chrome/installer/util/product.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/installer/util/product_unittest.cc View 2 chunks +13 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
grt (UTC plus 2)
8 years, 4 months ago (2012-08-03 14:50:40 UTC) #1
gab
Thanks for digging into this, turns out I had also started the same bug EOD ...
8 years, 4 months ago (2012-08-03 17:54:20 UTC) #2
grt (UTC plus 2)
Thanks for the review. I've also updated the description to include mention of the uninstall ...
8 years, 4 months ago (2012-08-03 20:18:37 UTC) #3
gab
You seem to have missed my comments on helper.cc and product_unittest.cc? + 1 more comment ...
8 years, 4 months ago (2012-08-03 20:42:41 UTC) #4
grt (UTC plus 2)
You seem to have missed my replies in helper.cc and product_unittest.cc. :-) https://chromiumcodereview.appspot.com/10826144/diff/1/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc ...
8 years, 4 months ago (2012-08-03 20:56:34 UTC) #5
gab
Oh oops, missed your replies indeed :)! lgtm (see replies below) https://chromiumcodereview.appspot.com/10826144/diff/1/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): ...
8 years, 4 months ago (2012-08-03 21:58:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/grt@chromium.org/10826144/4001
8 years, 4 months ago (2012-08-03 22:06:12 UTC) #7
commit-bot: I haz the power
Change committed as 149968
8 years, 4 months ago (2012-08-03 23:33:35 UTC) #8
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/10826144/diff/1/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/10826144/diff/1/chrome/installer/setup/uninstall.cc#newcode380 chrome/installer/setup/uninstall.cc:380: return DELETE_SUCCEEDED; On 2012/08/03 21:58:57, gab wrote: > On ...
8 years, 4 months ago (2012-08-04 19:25:20 UTC) #9
gab
8 years, 4 months ago (2012-08-05 06:27:39 UTC) #10
https://chromiumcodereview.appspot.com/10826144/diff/1/chrome/installer/setup...
File chrome/installer/setup/uninstall.cc (right):

https://chromiumcodereview.appspot.com/10826144/diff/1/chrome/installer/setup...
chrome/installer/setup/uninstall.cc:380: return DELETE_SUCCEEDED;
On 2012/08/04 19:25:20, grt wrote:
> On 2012/08/03 21:58:57, gab wrote:
> > On 2012/08/03 20:56:34, grt wrote:
> > > On 2012/08/03 20:42:41, gab wrote:
> > > > On 2012/08/03 20:18:37, grt wrote:
> > > > > On 2012/08/03 17:54:20, gab wrote:
> > > > > > I think this should be: {
> > > > > >   NOTREACHED();
> > > > > >   return DELETE_FAILED;
> > > > > > }
> > > > > 
> > > > > I added a DCHECK to GetChromeUserDataPaths() rather than sprinkling
them
> > > > around
> > > > > the code.  Do you think that's sufficient?
> > > > 
> > > > Yes, but I still think the return statement here should return
> > DELETE_FAILED.
> > > 
> > > hmm.  i disagree (although it's purely academic since the return value is
> > > ignored).  if the vector was empty, the function was told to delete
nothing
> at
> > > all, which is a noop.  i don't think this should imply that the uninstall
> > should
> > > be aborted.
> > 
> > Ah ok I see your point, given the returned value is not used though what
about
> > making this function return void?
> 
> After more thought, I like this as-is.  The fact that the (current) caller
> doesn't care about the result doesn't mean that this function shouldn't have a
> clean interface.

sgtm

Powered by Google App Engine
This is Rietveld 408576698