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

Issue 888843005: Closing a guest session clears all browsing history. (Closed)

Created:
5 years, 10 months ago by Mike Lerman
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Closing a guest session clears all browsing history. Note: This CL will be merged back to M41. Further work is underway to completely delete the Guest Profile when all browser windows are closed, but that will be too large to merge. BUG=445036 TEST=Open a Guest profile from the User Manager. Perform some browsing, set some cookies, etc. (e.g. sign in to your email). Close all guest browsers (via Exit Guest, closing all the browsers, however you like). Navigate to the same page, and your cookies are disappeared! Committed: https://crrev.com/67fa17a0ca78f16c8a28421d31093b26505f65c3 Cr-Commit-Position: refs/heads/master@{#316300}

Patch Set 1 #

Patch Set 2 : Handle tests #

Total comments: 10

Patch Set 3 : Testing handles NaCl. Yes, NaCl. #

Patch Set 4 : Comments #

Patch Set 5 : temp variable and a comment #

Total comments: 3

Patch Set 6 : Unit test moved to browser test; remove downloads as per battre@. Still as a Memory Leak. #

Patch Set 7 : Unit tests work now. Huzzah. #

Patch Set 8 : Pre-review cleanup. #

Total comments: 8

Patch Set 9 : pkasting and battre comments. #

Patch Set 10 : Don't remove ChromeOS data. #

Patch Set 11 : CrOS passes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -47 lines) Patch
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_command_controller_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +80 lines, -1 line 0 comments Download
M chrome/browser/ui/browser_command_controller_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -39 lines 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (10 generated)
Mike Lerman
Hi, Please review this CL. Dominic - privacy verification of clearing the browser history this ...
5 years, 10 months ago (2015-02-10 15:54:44 UTC) #2
Peter Kasting
https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode651 chrome/browser/browsing_data/browsing_data_remover.cc:651: if (EphemeralAppService::Get(profile_)) Get() is named as if it's expensive, ...
5 years, 10 months ago (2015-02-10 21:43:37 UTC) #3
Mike Lerman
Adding some additional reviewers. jcivelli - c/test Bernhard - c/b/browsing_data Thanks!
5 years, 10 months ago (2015-02-10 21:45:06 UTC) #5
Mike Lerman
Thanks Peter. Responses below. https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode651 chrome/browser/browsing_data/browsing_data_remover.cc:651: if (EphemeralAppService::Get(profile_)) On 2015/02/10 21:43:36, ...
5 years, 10 months ago (2015-02-10 21:53:32 UTC) #6
Peter Kasting
https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode651 chrome/browser/browsing_data/browsing_data_remover.cc:651: if (EphemeralAppService::Get(profile_)) On 2015/02/10 21:53:32, Mike Lerman wrote: > ...
5 years, 10 months ago (2015-02-10 21:58:10 UTC) #7
Mike Lerman
https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc File chrome/browser/browsing_data/browsing_data_remover.cc (right): https://codereview.chromium.org/888843005/diff/20001/chrome/browser/browsing_data/browsing_data_remover.cc#newcode651 chrome/browser/browsing_data/browsing_data_remover.cc:651: if (EphemeralAppService::Get(profile_)) On 2015/02/10 21:58:10, Peter Kasting wrote: > ...
5 years, 10 months ago (2015-02-11 15:15:32 UTC) #8
battre
https://codereview.chromium.org/888843005/diff/80001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/888843005/diff/80001/chrome/browser/ui/browser.cc#newcode524 chrome/browser/ui/browser.cc:524: BrowsingDataRemover::REMOVE_DOWNLOADS, Looking at https://developer.chrome.com/extensions/browsingData#method-removeDownloads (I did not check the ...
5 years, 10 months ago (2015-02-11 15:19:25 UTC) #9
Bernhard Bauer
c/b/browsing_data/ LGTM. https://codereview.chromium.org/888843005/diff/80001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://codereview.chromium.org/888843005/diff/80001/chrome/browser/ui/browser.cc#newcode524 chrome/browser/ui/browser.cc:524: BrowsingDataRemover::REMOVE_DOWNLOADS, On 2015/02/11 15:19:25, battre wrote: > ...
5 years, 10 months ago (2015-02-11 16:04:28 UTC) #10
Peter Kasting
Cool, thanks for the explanations and the comment improvement. LGTM.
5 years, 10 months ago (2015-02-11 19:28:55 UTC) #11
Jay Civelli
LGTM for chrome/test
5 years, 10 months ago (2015-02-12 00:41:38 UTC) #12
Mike Lerman
Hi Dominic, Addressed your issue. Still working on making the unit tests all happy. I ...
5 years, 10 months ago (2015-02-12 15:36:24 UTC) #14
Mike Lerman
Hi Dominic, any further thoughts? Peter, Can you take a look at the browser test? ...
5 years, 10 months ago (2015-02-12 22:14:26 UTC) #15
Peter Kasting
LGTM https://codereview.chromium.org/888843005/diff/140001/chrome/browser/ui/browser_command_controller_browsertest.cc File chrome/browser/ui/browser_command_controller_browsertest.cc (right): https://codereview.chromium.org/888843005/diff/140001/chrome/browser/ui/browser_command_controller_browsertest.cc#newcode57 chrome/browser/ui/browser_command_controller_browsertest.cc:57: // This test also tests the BrowsingDataRemover that ...
5 years, 10 months ago (2015-02-12 22:18:40 UTC) #16
battre
The existing code LGTM. I agree with Peter that it would be nice to have ...
5 years, 10 months ago (2015-02-13 08:49:43 UTC) #17
Mike Lerman
Comments addressed - thanks everyone! battre@, I have another CL where I'm working on building ...
5 years, 10 months ago (2015-02-13 14:07:29 UTC) #19
battre
Still LGTM. Thanks.
5 years, 10 months ago (2015-02-13 15:27:59 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/888843005/240001
5 years, 10 months ago (2015-02-13 21:50:23 UTC) #27
commit-bot: I haz the power
Committed patchset #11 (id:240001)
5 years, 10 months ago (2015-02-13 21:59:37 UTC) #28
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 22:00:06 UTC) #29
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/67fa17a0ca78f16c8a28421d31093b26505f65c3
Cr-Commit-Position: refs/heads/master@{#316300}

Powered by Google App Engine
This is Rietveld 408576698