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

Issue 8144013: Add a check to the registry before the intent infobar is shown. (Closed)

Created:
9 years, 2 months ago by Greg Billock
Modified:
9 years, 1 month ago
Reviewers:
James Hawkins
CC:
chromium-reviews
Visibility:
Public.

Description

Add a check to the registry before the intent infobar is shown. R=jhawkins@chromium.org BUG=99791 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109644

Patch Set 1 #

Total comments: 4

Patch Set 2 : Move logic to DB level #

Patch Set 3 : Add doc #

Total comments: 10

Patch Set 4 : Merge to head #

Total comments: 14

Patch Set 5 : New test #

Total comments: 5

Patch Set 6 : Read DB only based on service_url. #

Patch Set 7 : Rebase #

Patch Set 8 : Fix up returns. #

Total comments: 15

Patch Set 9 : More updates #

Total comments: 9

Patch Set 10 : Add some comments #

Patch Set 11 : Fix is_valid call and merge namespace change #

Patch Set 12 : Merge fix-up #

Patch Set 13 : Bypass type check for existence query. #

Patch Set 14 : Fix up merge #

Total comments: 6

Patch Set 15 : Rebase to trunk, review comments. #

Patch Set 16 : Fix test webdata calls. #

Total comments: 2

Patch Set 17 : Fix provider to service in comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -14 lines) Patch
M chrome/browser/intents/register_intent_handler_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/intents/register_intent_handler_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/browser/intents/web_intents_registry.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/intents/web_intents_registry.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +48 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/webdata/web_data_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_data_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_intents_table.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/webdata/web_intents_table.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +20 lines, -10 lines 0 comments Download
M chrome/browser/webdata/web_intents_table_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Greg Billock
9 years, 2 months ago (2011-10-05 18:30:18 UTC) #1
James Hawkins
http://codereview.chromium.org/8144013/diff/1/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/1/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode67 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:67: class IntentCheckConsumer : public WebIntentsRegistry::Consumer { Add a method ...
9 years, 2 months ago (2011-10-05 18:37:12 UTC) #2
Greg Billock
There's some "intents" "provider" "service" terminology confusion in the DB layer here. Shall I repair ...
9 years, 2 months ago (2011-10-05 22:19:02 UTC) #3
James Hawkins
http://codereview.chromium.org/8144013/diff/8001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/8001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode73 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:73: if (!provider_exists) Braces required due to multi-line. http://codereview.chromium.org/8144013/diff/8001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode82 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:82: ...
9 years, 2 months ago (2011-10-05 22:27:13 UTC) #4
Greg Billock
http://codereview.chromium.org/8144013/diff/8001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/8001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode73 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:73: if (!provider_exists) On 2011/10/05 22:27:17, James Hawkins wrote: > ...
9 years, 2 months ago (2011-10-05 22:45:53 UTC) #5
James Hawkins
http://codereview.chromium.org/8144013/diff/12001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/12001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode68 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:68: void CheckProvider( Are you sure the params don't fit ...
9 years, 2 months ago (2011-10-06 17:46:04 UTC) #6
Greg Billock
http://codereview.chromium.org/8144013/diff/12001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/12001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode68 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:68: void CheckProvider( On 2011/10/06 17:46:04, James Hawkins wrote: > ...
9 years, 2 months ago (2011-10-06 20:21:00 UTC) #7
James Hawkins
http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc File chrome/browser/webdata/web_intents_table.cc (right): http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc#newcode98 chrome/browser/webdata/web_intents_table.cc:98: return false; On 2011/10/06 20:21:00, Greg Billock wrote: > ...
9 years, 2 months ago (2011-10-06 20:55:03 UTC) #8
Greg Billock
http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc File chrome/browser/webdata/web_intents_table.cc (right): http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc#newcode98 chrome/browser/webdata/web_intents_table.cc:98: return false; On 2011/10/06 20:55:03, James Hawkins wrote: > ...
9 years, 2 months ago (2011-10-06 21:37:57 UTC) #9
James Hawkins
http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc File chrome/browser/webdata/web_intents_table.cc (right): http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc#newcode98 chrome/browser/webdata/web_intents_table.cc:98: return false; On 2011/10/06 21:37:57, Greg Billock wrote: > ...
9 years, 2 months ago (2011-10-06 21:42:32 UTC) #10
Greg Billock
http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc File chrome/browser/webdata/web_intents_table.cc (right): http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc#newcode98 chrome/browser/webdata/web_intents_table.cc:98: return false; On 2011/10/06 21:42:32, James Hawkins wrote: > ...
9 years, 2 months ago (2011-10-06 22:13:11 UTC) #11
James Hawkins
http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc File chrome/browser/webdata/web_intents_table.cc (right): http://codereview.chromium.org/8144013/diff/12001/chrome/browser/webdata/web_intents_table.cc#newcode98 chrome/browser/webdata/web_intents_table.cc:98: return false; On 2011/10/06 22:13:12, Greg Billock wrote: > ...
9 years, 2 months ago (2011-10-07 20:29:47 UTC) #12
Greg Billock
Modified the DB code to just scan looking for the service_url. Added a TODO with ...
9 years, 2 months ago (2011-10-07 23:00:48 UTC) #13
Greg Billock
On 2011/10/07 23:00:48, Greg Billock wrote: > Modified the DB code to just scan looking ...
9 years, 2 months ago (2011-10-11 17:52:54 UTC) #14
James Hawkins
On 2011/10/11 17:52:54, Greg Billock wrote: > On 2011/10/07 23:00:48, Greg Billock wrote: > > ...
9 years, 2 months ago (2011-10-11 17:55:19 UTC) #15
Greg Billock
See sql/statement.h is_valid(): // Returns true if the statement can be executed. All functions can ...
9 years, 2 months ago (2011-10-11 18:22:14 UTC) #16
Greg Billock
I've been talking to Scott Hess about this. He's not really happy with the existing ...
9 years, 2 months ago (2011-10-11 23:39:19 UTC) #17
James Hawkins
I just finished a discussion with David Holloway where we codified how these statements should ...
9 years, 2 months ago (2011-10-11 23:45:13 UTC) #18
Greg Billock
On Tue, Oct 11, 2011 at 4:44 PM, James Hawkins <jhawkins@chromium.org>wrote: > I just finished ...
9 years, 2 months ago (2011-10-12 17:01:36 UTC) #19
Greg Billock
OK, I think we've got the boat launched on a Statement cleanup. If you lgtm ...
9 years, 2 months ago (2011-10-14 22:32:51 UTC) #20
Greg Billock
updated. On 2011/10/14 22:32:51, Greg Billock wrote: > OK, I think we've got the boat ...
9 years, 1 month ago (2011-10-26 23:43:25 UTC) #21
James Hawkins
http://codereview.chromium.org/8144013/diff/37001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/37001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode68 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:68: void CheckProvider( Move to an unnamed namespace. http://codereview.chromium.org/8144013/diff/37001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode70 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:70: ...
9 years, 1 month ago (2011-10-26 23:50:04 UTC) #22
Greg Billock
http://codereview.chromium.org/8144013/diff/37001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/37001/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode68 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:68: void CheckProvider( On 2011/10/26 23:50:06, James Hawkins wrote: > ...
9 years, 1 month ago (2011-10-29 00:03:19 UTC) #23
James Hawkins
http://codereview.chromium.org/8144013/diff/44001/chrome/browser/intents/register_intent_handler_infobar_delegate.h File chrome/browser/intents/register_intent_handler_infobar_delegate.h (right): http://codereview.chromium.org/8144013/diff/44001/chrome/browser/intents/register_intent_handler_infobar_delegate.h#newcode35 chrome/browser/intents/register_intent_handler_infobar_delegate.h:35: // already been registered. If all registration details are ...
9 years, 1 month ago (2011-10-29 21:41:32 UTC) #24
Greg Billock
http://codereview.chromium.org/8144013/diff/44001/chrome/browser/intents/register_intent_handler_infobar_delegate.h File chrome/browser/intents/register_intent_handler_infobar_delegate.h (right): http://codereview.chromium.org/8144013/diff/44001/chrome/browser/intents/register_intent_handler_infobar_delegate.h#newcode35 chrome/browser/intents/register_intent_handler_infobar_delegate.h:35: // already been registered. If all registration details are ...
9 years, 1 month ago (2011-10-31 17:07:08 UTC) #25
James Hawkins
http://codereview.chromium.org/8144013/diff/44001/chrome/browser/webdata/web_intents_table.cc File chrome/browser/webdata/web_intents_table.cc (right): http://codereview.chromium.org/8144013/diff/44001/chrome/browser/webdata/web_intents_table.cc#newcode16 chrome/browser/webdata/web_intents_table.cc:16: DCHECK(s); On 2011/10/31 17:07:09, Greg Billock wrote: > On ...
9 years, 1 month ago (2011-11-02 07:23:46 UTC) #26
Greg Billock
On 2011/11/02 07:23:46, James Hawkins wrote: > http://codereview.chromium.org/8144013/diff/44001/chrome/browser/webdata/web_intents_table.cc > File chrome/browser/webdata/web_intents_table.cc (right): > > http://codereview.chromium.org/8144013/diff/44001/chrome/browser/webdata/web_intents_table.cc#newcode16 ...
9 years, 1 month ago (2011-11-02 15:51:32 UTC) #27
James Hawkins
LGTM with nits. http://codereview.chromium.org/8144013/diff/57002/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/57002/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode92 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:92: base::Unretained(registry), Remove base::Unretained() from |registry|. Only ...
9 years, 1 month ago (2011-11-09 17:32:42 UTC) #28
Greg Billock
http://codereview.chromium.org/8144013/diff/57002/chrome/browser/intents/register_intent_handler_infobar_delegate.cc File chrome/browser/intents/register_intent_handler_infobar_delegate.cc (right): http://codereview.chromium.org/8144013/diff/57002/chrome/browser/intents/register_intent_handler_infobar_delegate.cc#newcode92 chrome/browser/intents/register_intent_handler_infobar_delegate.cc:92: base::Unretained(registry), On 2011/11/09 17:32:42, James Hawkins wrote: > Remove ...
9 years, 1 month ago (2011-11-10 00:21:31 UTC) #29
James Hawkins
http://codereview.chromium.org/8144013/diff/62003/chrome/browser/webdata/web_data_service.h File chrome/browser/webdata/web_data_service.h (right): http://codereview.chromium.org/8144013/diff/62003/chrome/browser/webdata/web_data_service.h#newcode378 chrome/browser/webdata/web_data_service.h:378: // Get all web intent providers registered using the ...
9 years, 1 month ago (2011-11-10 00:48:49 UTC) #30
Greg Billock
http://codereview.chromium.org/8144013/diff/62003/chrome/browser/webdata/web_data_service.h File chrome/browser/webdata/web_data_service.h (right): http://codereview.chromium.org/8144013/diff/62003/chrome/browser/webdata/web_data_service.h#newcode378 chrome/browser/webdata/web_data_service.h:378: // Get all web intent providers registered using the ...
9 years, 1 month ago (2011-11-10 17:59:41 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/8144013/68001
9 years, 1 month ago (2011-11-11 15:57:57 UTC) #32
commit-bot: I haz the power
9 years, 1 month ago (2011-11-11 17:03:33 UTC) #33
Change committed as 109644

Powered by Google App Engine
This is Rietveld 408576698