Description was changed from ========== Site Settings Desktop: Implement individual cookie removal and RemoveAll. BUG=635852, ...
4 years, 4 months ago
(2016-08-17 16:17:04 UTC)
#1
Description was changed from
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
==========
to
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
Finnur
The CQ bit was checked by finnur@chromium.org to run a CQ dry run
4 years, 4 months ago
(2016-08-17 16:17:07 UTC)
#2
4 years, 4 months ago
(2016-08-17 16:45:36 UTC)
#4
Patchset #1 (id:1) has been deleted
Finnur
Description was changed from ========== Site Settings Desktop: Implement individual cookie removal and RemoveAll. BUG=635852, ...
4 years, 4 months ago
(2016-08-17 16:47:40 UTC)
#5
Description was changed from
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
Mike, can you take cookie_tree_model.cc. Dave, can you take the rest? https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): ...
4 years, 4 months ago
(2016-08-17 16:55:54 UTC)
#7
Mike, can you take cookie_tree_model.cc.
Dave, can you take the rest?
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/browsing...
File chrome/browser/browsing_data/cookies_tree_model.cc (right):
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/browsing...
chrome/browser/browsing_data/cookies_tree_model.cc:1528: SetBatchExpectation(0,
true);
This is an augmentation of the fix I submitted here:
https://codereview.chromium.org/863503002/
The problem I encountered was when showing the cookie data list. It starts off a
batch of number of batches. Once it ends, batches_started_ and batches_ended_
match and are non-zero. All good up till then.
But once I select RemoveAll cookies, it starts a new batch but because
batches_started > 0, it doesn't fire off TreeModelBeginBatch because of line
1508 above. It does, however, fire TreeModelEndBatch (line 1527), which confuses
the clients (they DCHECK on batches ending that haven't been started).
If I null out the counters when the final batch has ended, this problem doesn't
happen.
Finnur
The CQ bit was checked by finnur@chromium.org to run a CQ dry run
4 years, 4 months ago
(2016-08-17 16:57:18 UTC)
#8
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc File chrome/browser/browsing_data/cookies_tree_model.cc (right): https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/browsing_data/cookies_tree_model.cc#newcode1528 chrome/browser/browsing_data/cookies_tree_model.cc:1528: SetBatchExpectation(0, true); Second paragraph should have read: > The ...
4 years, 4 months ago
(2016-08-17 16:58:54 UTC)
#10
4 years, 4 months ago
(2016-08-17 17:41:27 UTC)
#12
Dry run: This issue passed the CQ dry run.
dschuyler
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resources/settings/site_settings/site_data.html File chrome/browser/resources/settings/site_settings/site_data.html (right): https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resources/settings/site_settings/site_data.html#newcode19 chrome/browser/resources/settings/site_settings/site_data.html:19: -webkit-margin-end: -29px; Just curious: what is this fixing (or ...
4 years, 4 months ago
(2016-08-18 00:44:03 UTC)
#13
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resources/settings/site_settings/site_data.html File chrome/browser/resources/settings/site_settings/site_data.html (right): https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resources/settings/site_settings/site_data.html#newcode19 chrome/browser/resources/settings/site_settings/site_data.html:19: -webkit-margin-end: -29px; Aligning the new trashcan so that it ...
4 years, 4 months ago
(2016-08-18 16:20:30 UTC)
#16
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resource...
File chrome/browser/resources/settings/site_settings/site_data.html (right):
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/site_settings/site_data.html:19:
-webkit-margin-end: -29px;
Aligning the new trashcan so that it is under the other icons above the section.
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/site_settings/site_data.html:44: <div
class="favicon-image" style$="[[computeSiteIcon(item.site)]]"
On 2016/08/18 00:44:03, dschuyler wrote:
> The whole row area (other than the delete
> button at the end) should be clickable to
> do the onSiteTap_. This may need an extra
> div wrapping the icon and the item.* text.
> That new div would have the on-tap="onSiteTap_"
> and the actionable.
Done.
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resource...
File chrome/browser/resources/settings/site_settings/site_data.js (right):
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/site_settings/site_data.js:50:
this.browserProxy.reloadCookies();
I've converted to promises, but it still doesn't alleviate the need to track
requests. It does, however, make the tracking a bit saner.
The reason I need to track the number of outstanding requests is to figure out
when I'm done fetching data so that I'm not calling getSummaryList() repeatedly
while the data is being populated -- it slows down the page loading.
The CookieTreeModel, when reset (as in reload-all-cookies), will give you the
top-level nodes. It is up to the client to decide what to do with it. We want
all the data, so we keep issuing more requests for more details until we have
everything.
I only want to update the UI when that is complete. So, I have to keep track of
the requests to know when. It feels more natural to do this at the JS layer
because the C++ layer doesn't really care if more requests are coming in and it
doesn't feel right to have it try to decipher what the client will do (or tell
the client when it is done).
Does this make sense?
https://codereview.chromium.org/2248683006/diff/20001/chrome/browser/resource...
chrome/browser/resources/settings/site_settings/site_data.js:120:
this.requests_++;
On 2016/08/18 00:44:03, dschuyler wrote:
> nit: please use pre-increment unless post-increment
> is needed for the specific case. i.e.
> ++this.requests_;
Acknowledged.
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2248683006/40001
4 years, 4 months ago
(2016-08-18 16:20:45 UTC)
#17
4 years, 4 months ago
(2016-08-18 17:21:44 UTC)
#19
Dry run: This issue passed the CQ dry run.
dschuyler
LGTM if the |getSummeryList| thing is not an issue. https://codereview.chromium.org/2248683006/diff/40001/chrome/browser/resources/settings/site_settings/site_data.js File chrome/browser/resources/settings/site_settings/site_data.js (right): https://codereview.chromium.org/2248683006/diff/40001/chrome/browser/resources/settings/site_settings/site_data.js#newcode56 chrome/browser/resources/settings/site_settings/site_data.js:56: ...
4 years, 4 months ago
(2016-08-18 22:51:10 UTC)
#20
No code change, just wanted to get a round of discussions in before going to ...
4 years, 4 months ago
(2016-08-18 23:27:38 UTC)
#21
No code change, just wanted to get a round of discussions in before going to
bed. :)
https://codereview.chromium.org/2248683006/diff/40001/chrome/browser/resource...
File chrome/browser/resources/settings/site_settings/site_data.js (right):
https://codereview.chromium.org/2248683006/diff/40001/chrome/browser/resource...
chrome/browser/resources/settings/site_settings/site_data.js:93: this.sites =
this.treeNodes_.getSummaryList();
I don't think this is an issue, but will check tomorrow when I get in to work
again.
https://codereview.chromium.org/2248683006/diff/40001/chrome/browser/resource...
chrome/browser/resources/settings/site_settings/site_data.js:104:
onTreeItemRemoved_: function(args) {
Umm, yeah -- |we| probably can. :) I, however, already made an attempt at it
yesterday and gave up. I'm just not sure how to represent the data types
involved to Closure. Your input here would be valuable.
Essentially, I wanted to represent that |args| always looks like this:
Array<String, Number, Number>
In other words, it is a list value with always the same three data types.
But Closure doesn't like that kind of definition. I also tried something like
Array<String|Number>, but then Closure complains about the call to
removeByParentId below (because it wants String but gets String|Number.
What's the right way to do this?
Finnur
The CQ bit was checked by finnur@chromium.org to run a CQ dry run
4 years, 4 months ago
(2016-08-19 12:12:31 UTC)
#22
https://codereview.chromium.org/2248683006/diff/40001/chrome/browser/resources/settings/site_settings/site_data.js File chrome/browser/resources/settings/site_settings/site_data.js (right): https://codereview.chromium.org/2248683006/diff/40001/chrome/browser/resources/settings/site_settings/site_data.js#newcode56 chrome/browser/resources/settings/site_settings/site_data.js:56: * determine whether the button should be visible. On ...
4 years, 4 months ago
(2016-08-19 12:18:32 UTC)
#24
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/264887)
4 years, 4 months ago
(2016-08-19 13:33:52 UTC)
#26
Description was changed from ========== Site Settings Desktop: Implement individual cookie removal and RemoveAll. BUG=635852, ...
4 years, 4 months ago
(2016-08-19 15:28:11 UTC)
#30
Message was sent while issue was closed.
Description was changed from
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 4 months ago
(2016-08-19 15:28:12 UTC)
#31
Message was sent while issue was closed.
Committed patchset #3 (id:60001)
commit-bot: I haz the power
Description was changed from ========== Site Settings Desktop: Implement individual cookie removal and RemoveAll. BUG=635852, ...
4 years, 4 months ago
(2016-08-19 15:29:40 UTC)
#32
Message was sent while issue was closed.
Description was changed from
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
==========
to
==========
Site Settings Desktop: Implement individual cookie removal and RemoveAll.
BUG=635852, 614277
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/f40c843852d50fc41aa353588d7799f0f6203626
Cr-Commit-Position: refs/heads/master@{#413151}
==========
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f40c843852d50fc41aa353588d7799f0f6203626 Cr-Commit-Position: refs/heads/master@{#413151}
4 years, 4 months ago
(2016-08-19 15:29:42 UTC)
#33
Issue 2248683006: Site Settings Desktop: Implement individual cookie removal and RemoveAll.
(Closed)
Created 4 years, 4 months ago by Finnur
Modified 4 years, 4 months ago
Reviewers: Mike West, dschuyler
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 20