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

Issue 54203008: Store xsrf token received with psuggest results. (Closed)

Created:
7 years, 1 month ago by Maria
Modified:
7 years ago
CC:
chromium-reviews, James Su
Visibility:
Public.

Description

Store xsrf token received with psuggest results. Stores xsrf token in AutocompleteMatch search_terms_args for later use in case the user triggers deletion of a suggestion. BUG=312477 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238422

Patch Set 1 #

Patch Set 2 : Added test case #

Total comments: 2

Patch Set 3 : Implemented end-to-end deletion #

Patch Set 4 : Update test to use consts #

Patch Set 5 : Remove match from matches_ when deletion is requested #

Total comments: 11

Patch Set 6 : Addressed Anuj's comments #

Total comments: 61

Patch Set 7 : Addressing Peter's comments #

Patch Set 8 : Added a missing comment #

Patch Set 9 : Moved helper class to cc file #

Total comments: 41

Patch Set 10 : Addresses more of Peter's comments #

Patch Set 11 : Remove virtual from OnDeletionComplete #

Total comments: 1

Patch Set 12 : More comments taken care of #

Total comments: 22

Patch Set 13 : Small fixes #

Patch Set 14 : Update to the tests #

Total comments: 6

Patch Set 15 : Nit fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+400 lines, -84 lines) Patch
M chrome/browser/autocomplete/search_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 chunks +41 lines, -3 lines 0 comments Download
M chrome/browser/autocomplete/search_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 18 chunks +204 lines, -74 lines 0 comments Download
M chrome/browser/autocomplete/search_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +148 lines, -5 lines 0 comments Download
M chrome/browser/autocomplete/zero_suggest_provider.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M tools/metrics/actions/chromeactions.txt View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Maria
7 years, 1 month ago (2013-10-31 23:42:03 UTC) #1
Peter Kasting
Honestly I would rather see a single change that both stores and uses this token. ...
7 years, 1 month ago (2013-10-31 23:54:46 UTC) #2
mariakhomenko
How about this: I will rework this CL to add the functionality for DeleteMatch() in ...
7 years, 1 month ago (2013-11-01 00:19:51 UTC) #3
Peter Kasting
On 2013/11/01 00:19:51, mariakhomenko_google.com wrote: > How about this: I will rework this CL to ...
7 years, 1 month ago (2013-11-01 00:24:42 UTC) #4
Anuj Sharma
On Thu, Oct 31, 2013 at 5:24 PM, <pkasting@chromium.org> wrote: > On 2013/11/01 00:19:51, mariakhomenko_google.com ...
7 years, 1 month ago (2013-11-01 00:45:54 UTC) #5
mariakhomenko
Sorry, not sure what you mean by "more power to the server". My current plan ...
7 years, 1 month ago (2013-11-01 00:51:05 UTC) #6
Anuj Sharma
On Thu, Oct 31, 2013 at 5:50 PM, Maria Khomenko <mariakhomenko@google.com>wrote: > Sorry, not sure ...
7 years, 1 month ago (2013-11-01 00:53:30 UTC) #7
mariakhomenko
Sending the URL down would make the code easy, but it seems inefficient to re-send ...
7 years, 1 month ago (2013-11-01 18:49:19 UTC) #8
Anuj Sharma
Inefficiency in what terms? We use param names as descriptive as google:clientdata, google:suggesttype. The display ...
7 years, 1 month ago (2013-11-01 21:38:40 UTC) #9
mariakhomenko
Ok, here are pros and cons of the two approaches as I see them: 1) ...
7 years, 1 month ago (2013-11-01 22:34:29 UTC) #10
Peter Kasting
On Fri, Nov 1, 2013 at 3:34 PM, Maria Khomenko <mariakhomenko@google.com>wrote: > I am hesitantly ...
7 years, 1 month ago (2013-11-04 22:50:25 UTC) #11
Anuj Sharma
Note that the cons of 2 (response size) are reduced by the fact that the ...
7 years, 1 month ago (2013-11-04 22:58:30 UTC) #12
mariakhomenko
I uploaded a new patch for this that's ready for review. Please take a look. ...
7 years, 1 month ago (2013-11-18 23:39:33 UTC) #13
Anuj
Looking good. Some comments nonetheless. https://codereview.chromium.org/54203008/diff/250001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/250001/chrome/browser/autocomplete/search_provider.cc#newcode1750 chrome/browser/autocomplete/search_provider.cc:1750: DCHECK(match.deletable); This deletes only ...
7 years, 1 month ago (2013-11-21 17:27:52 UTC) #14
Maria
https://codereview.chromium.org/54203008/diff/250001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/250001/chrome/browser/autocomplete/search_provider.cc#newcode1750 chrome/browser/autocomplete/search_provider.cc:1750: DCHECK(match.deletable); On 2013/11/21 17:27:52, Anuj wrote: > This deletes ...
7 years, 1 month ago (2013-11-21 19:38:30 UTC) #15
Anuj
lgtm Looks good enough to me. I am sure Peter will weed out all the ...
7 years, 1 month ago (2013-11-22 03:15:38 UTC) #16
Peter Kasting
https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc#newcode327 chrome/browser/autocomplete/search_provider.cc:327: SearchProvider::SuggestionDeletionHandler::SuggestionDeletionHandler() { Nit: Blank line above this https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc#newcode330 chrome/browser/autocomplete/search_provider.cc:330: ...
7 years, 1 month ago (2013-11-23 00:08:42 UTC) #17
Maria
Thanks for the code review! PTAL. https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc#newcode327 chrome/browser/autocomplete/search_provider.cc:327: SearchProvider::SuggestionDeletionHandler::SuggestionDeletionHandler() { On ...
7 years ago (2013-11-26 02:36:26 UTC) #18
Peter Kasting
https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc#newcode330 chrome/browser/autocomplete/search_provider.cc:330: SearchProvider::SuggestionDeletionHandler::~SuggestionDeletionHandler() { On 2013/11/26 02:36:27, Maria wrote: > On ...
7 years ago (2013-11-26 02:46:21 UTC) #19
Maria
Made changes as you suggested. PTAL. https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider.cc#newcode330 chrome/browser/autocomplete/search_provider.cc:330: SearchProvider::SuggestionDeletionHandler::~SuggestionDeletionHandler() { On ...
7 years ago (2013-11-27 02:18:05 UTC) #20
Peter Kasting
https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): https://codereview.chromium.org/54203008/diff/300001/chrome/browser/autocomplete/search_provider_unittest.cc#newcode4076 chrome/browser/autocomplete/search_provider_unittest.cc:4076: ASSERT_TRUE(provider_->deletion_handler_.get() == NULL); On 2013/11/26 02:46:22, Peter Kasting wrote: ...
7 years ago (2013-11-27 21:58:18 UTC) #21
Maria
Hey, I tried your approach with SearchProvider subclassing, but unfortunately that's hard because SearchProvider has ...
7 years ago (2013-11-28 00:17:02 UTC) #22
Peter Kasting
On 2013/11/28 00:17:02, Maria wrote: > Hey, I tried your approach with SearchProvider subclassing, but ...
7 years ago (2013-11-28 00:44:16 UTC) #23
mariakhomenko
On Wed, Nov 27, 2013 at 4:44 PM, <pkasting@chromium.org> wrote: > On 2013/11/28 00:17:02, Maria ...
7 years ago (2013-12-02 21:19:28 UTC) #24
Peter Kasting
LGTM https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.cc#newcode1181 chrome/browser/autocomplete/search_provider.cc:1181: string16 disambiguating_query; Nit: Declare this in the most ...
7 years ago (2013-12-03 00:33:51 UTC) #25
Maria
https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.cc File chrome/browser/autocomplete/search_provider.cc (right): https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.cc#newcode1181 chrome/browser/autocomplete/search_provider.cc:1181: string16 disambiguating_query; On 2013/12/03 00:33:51, Peter Kasting wrote: > ...
7 years ago (2013-12-03 01:00:26 UTC) #26
Peter Kasting
https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider_unittest.cc#newcode4119 chrome/browser/autocomplete/search_provider_unittest.cc:4119: "https://www.google.com/complete/deleteitem?q=foo"); On 2013/12/03 01:00:26, Maria wrote: > On 2013/12/03 ...
7 years ago (2013-12-03 01:03:21 UTC) #27
mariakhomenko
On Mon, Dec 2, 2013 at 5:03 PM, <pkasting@chromium.org> wrote: > > https://codereview.chromium.org/54203008/diff/490001/ > chrome/browser/autocomplete/search_provider_unittest.cc ...
7 years ago (2013-12-03 01:18:09 UTC) #28
Anuj
https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider_unittest.cc File chrome/browser/autocomplete/search_provider_unittest.cc (right): https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider_unittest.cc#newcode4094 chrome/browser/autocomplete/search_provider_unittest.cc:4094: TEST_F(SearchProviderTest, TestDeleteMatch_HasDeletionUrlSuccess) { I think TestDeleteMatch_Success is sufficient. HasDeletionUrlSuccess ...
7 years ago (2013-12-03 01:25:46 UTC) #29
Peter Kasting
On 2013/12/03 01:18:09, mariakhomenko_google.com wrote: > a) We just paste the code from Failure case ...
7 years ago (2013-12-03 01:27:52 UTC) #30
Maria
IMHO, this is worse, but I combined the two test cases together. I don't think ...
7 years ago (2013-12-03 01:40:14 UTC) #31
Peter Kasting
Still LGTM https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.h File chrome/browser/autocomplete/search_provider.h (right): https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.h#newcode398 chrome/browser/autocomplete/search_provider.h:398: // Records in UMA whether the deletion ...
7 years ago (2013-12-03 01:47:50 UTC) #32
Maria
https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.h File chrome/browser/autocomplete/search_provider.h (right): https://codereview.chromium.org/54203008/diff/490001/chrome/browser/autocomplete/search_provider.h#newcode398 chrome/browser/autocomplete/search_provider.h:398: // Records in UMA whether the deletion request resulted ...
7 years ago (2013-12-03 01:55:20 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mariakhomenko@chromium.org/54203008/550001
7 years ago (2013-12-03 09:28:50 UTC) #34
commit-bot: I haz the power
7 years ago (2013-12-03 17:20:32 UTC) #35
Message was sent while issue was closed.
Change committed as 238422

Powered by Google App Engine
This is Rietveld 408576698