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

Issue 23345004: Fix Android strict-mode violation in GeoLocation info bar. (Closed)

Created:
7 years, 4 months ago by acleung1
Modified:
6 years, 9 months ago
CC:
chromium-reviews, Ramya, Miguel Garcia
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

The CL breaks up some of the work done in GeoLocationInfoBar. Work that needs to be done in UI thread are kept there while other heavy lifing is done by workers. BUG=276614 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253765

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : Fix ups #

Total comments: 22

Patch Set 4 : move some of the work back to UI thread instead to avoid race conditions #

Patch Set 5 : address some comments #

Patch Set 6 : Added back some asserts / comments. #

Total comments: 16

Patch Set 7 : address comments #

Total comments: 20

Patch Set 8 : addresses comments #

Total comments: 5

Patch Set 9 : address comments #

Patch Set 10 : sync'd #

Patch Set 11 : wip #

Patch Set 12 : rewrite #

Total comments: 22

Patch Set 13 : address comments #

Patch Set 14 : fix compile error #

Patch Set 15 : fix test compilation error #

Patch Set 16 : fix more tests #

Total comments: 4

Patch Set 17 : address comments / fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -35 lines) Patch
M chrome/android/testshell/testshell_google_location_settings_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M chrome/android/testshell/testshell_google_location_settings_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/android/google_location_settings_helper.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/android/mock_google_location_settings_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/mock_google_location_settings_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/content_settings/permission_queue_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +64 lines, -8 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_infobar_delegate_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/media/chrome_midi_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/media/protected_media_identifier_permission_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
acleung1
Hey Jonathan, would you mind taking a look at this for me? Thanks!
7 years, 4 months ago (2013-08-20 22:53:11 UTC) #1
joth
This looks suspeciously non thread safe. I only really read the first file. +cramya,bulch FYI ...
7 years, 4 months ago (2013-08-20 23:07:21 UTC) #2
joth
This looks suspiciously non thread safe. I only really read the first file. +cramya,bulch FYI ...
7 years, 4 months ago (2013-08-20 23:07:26 UTC) #3
acleung1
That IS bad! May be I was too aggressive with moving stuff out of the ...
7 years, 4 months ago (2013-08-20 23:58:38 UTC) #4
bulach
+miguelg who's doing some infobar refactorings to bring in the translate infobar and maybe interested ...
7 years, 4 months ago (2013-08-21 09:28:29 UTC) #5
Michael van Ouwerkerk
https://codereview.chromium.org/23345004/diff/4001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc File chrome/browser/geolocation/chrome_geolocation_permission_context.cc (left): https://codereview.chromium.org/23345004/diff/4001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc#oldcode181 chrome/browser/geolocation/chrome_geolocation_permission_context.cc:181: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); Instead of deleting, could you modify such checks ...
7 years, 4 months ago (2013-08-21 10:24:44 UTC) #6
Miguel Garcia
Just a pass by review on the delegate piece. https://codereview.chromium.org/23345004/diff/4001/chrome/browser/geolocation/geolocation_infobar_delegate.cc File chrome/browser/geolocation/geolocation_infobar_delegate.cc (right): https://codereview.chromium.org/23345004/diff/4001/chrome/browser/geolocation/geolocation_infobar_delegate.cc#newcode36 chrome/browser/geolocation/geolocation_infobar_delegate.cc:36: ...
7 years, 4 months ago (2013-08-21 11:46:46 UTC) #7
joth
On 21 August 2013 03:24, <mvanouwerkerk@chromium.org> wrote: > > https://codereview.chromium.**org/23345004/diff/4001/chrome/** > browser/geolocation/chrome_**geolocation_permission_**context.cc<https://codereview.chromium.org/23345004/diff/4001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc> > File chrome/browser/geolocation/**chrome_geolocation_permission_** ...
7 years, 4 months ago (2013-08-21 19:36:13 UTC) #8
Michael van Ouwerkerk
On 2013/08/21 19:36:13, joth wrote: > On 21 August 2013 03:24, <mailto:mvanouwerkerk@chromium.org> wrote: > > ...
7 years, 4 months ago (2013-08-22 09:52:55 UTC) #9
acleung1
Hi, thanks for the suggestions! I re-arranged the control flow so it is mostly back ...
7 years, 4 months ago (2013-08-23 23:13:09 UTC) #10
bulach
thanks alan! sorry for the delay, I haven't managed to get through all files but ...
7 years, 3 months ago (2013-09-04 18:48:53 UTC) #11
acleung1
thanks! PTAL. https://codereview.chromium.org/23345004/diff/36001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc File chrome/browser/geolocation/chrome_geolocation_permission_context.cc (right): https://codereview.chromium.org/23345004/diff/36001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc#newcode138 chrome/browser/geolocation/chrome_geolocation_permission_context.cc:138: // setting == ask. Prompt the user ...
7 years, 3 months ago (2013-09-05 21:50:15 UTC) #12
bulach
thanks alan! I'm afraid the rabbit hole goes a bit deeper in the infobar side, ...
7 years, 3 months ago (2013-09-12 09:18:29 UTC) #13
acleung1
https://codereview.chromium.org/23345004/diff/40001/chrome/browser/android/google_location_settings_helper.h File chrome/browser/android/google_location_settings_helper.h (right): https://codereview.chromium.org/23345004/diff/40001/chrome/browser/android/google_location_settings_helper.h#newcode20 chrome/browser/android/google_location_settings_helper.h:20: virtual std::string GetAcceptButtonLabel(bool allow) = 0; On 2013/09/12 09:18:29, ...
7 years, 3 months ago (2013-09-17 00:08:44 UTC) #14
bulach
very sorry for the delay, went under my radar... :( feel free to ping me ...
7 years, 2 months ago (2013-10-16 10:47:10 UTC) #15
acleung1
https://codereview.chromium.org/23345004/diff/40001/chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc File chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc (right): https://codereview.chromium.org/23345004/diff/40001/chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc#newcode94 chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc:94: callback); On 2013/10/16 10:47:11, bulach wrote: > here, I ...
7 years ago (2013-12-12 23:38:30 UTC) #16
bulach
hey alan, terribly sorry for the delay... I can't see patchset #9, so some comments ...
6 years, 11 months ago (2014-01-15 16:22:07 UTC) #17
acleung1
On 2014/01/15 16:22:07, bulach_ooo_until_feb_2 wrote: > hey alan, terribly sorry for the delay... I can't ...
6 years, 11 months ago (2014-01-24 05:48:15 UTC) #18
bulach
On 2014/01/24 05:48:15, acleung1 wrote: > On 2014/01/15 16:22:07, bulach_ooo_until_feb_2 wrote: > > hey alan, ...
6 years, 11 months ago (2014-01-24 06:08:00 UTC) #19
acleung1
Sounds good. I have taken approach #1. Please take a look. On 2014/01/24 06:08:00, bulach ...
6 years, 10 months ago (2014-02-14 05:52:55 UTC) #20
bulach
lgtm, thanks a ton putting up with my slow comments! just some nits and small ...
6 years, 10 months ago (2014-02-14 11:36:47 UTC) #21
acleung1
https://codereview.chromium.org/23345004/diff/49001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc File chrome/browser/geolocation/chrome_geolocation_permission_context.cc (right): https://codereview.chromium.org/23345004/diff/49001/chrome/browser/geolocation/chrome_geolocation_permission_context.cc#newcode13 chrome/browser/geolocation/chrome_geolocation_permission_context.cc:13: #include "base/threading/worker_pool.h" On 2014/01/15 16:22:07, bulach_ooo_until_feb_2 wrote: > nit: ...
6 years, 10 months ago (2014-02-21 21:18:00 UTC) #22
acleung1
Hi markusheintz fischman: I am missing OWNER approval from the following files: chrome/browser/content_settings/permission_queue_controller.cc chrome/browser/content_settings/permission_queue_controller.h chrome/browser/media/chrome_midi_permission_context.cc ...
6 years, 10 months ago (2014-02-21 21:30:03 UTC) #23
acleung1
xians: Would you mind taking a look at the changes in: chrome/browser/media/chrome_midi_permission_context.cc chrome/browser/media/protected_media_identifier_permission_context.cc Thanks. On ...
6 years, 10 months ago (2014-02-21 21:33:02 UTC) #24
no longer working on chromium
lgtm with nits.
6 years, 10 months ago (2014-02-23 21:12:34 UTC) #25
Ami GONE FROM CHROMIUM
chrome/browser/media RS LGTM
6 years, 10 months ago (2014-02-24 22:37:06 UTC) #26
no longer working on chromium
ah, I forgot to publish the nits. Sorry for the delay. https://codereview.chromium.org/23345004/diff/1229001/chrome/browser/media/chrome_midi_permission_context.cc File chrome/browser/media/chrome_midi_permission_context.cc (right): ...
6 years, 10 months ago (2014-02-25 11:21:33 UTC) #27
acleung1
Thanks! https://codereview.chromium.org/23345004/diff/1229001/chrome/browser/media/chrome_midi_permission_context.cc File chrome/browser/media/chrome_midi_permission_context.cc (right): https://codereview.chromium.org/23345004/diff/1229001/chrome/browser/media/chrome_midi_permission_context.cc#newcode199 chrome/browser/media/chrome_midi_permission_context.cc:199: id, requesting_frame, embedder, "", base::Bind( On 2014/02/25 11:21:34, ...
6 years, 10 months ago (2014-02-25 23:15:44 UTC) #28
acleung1
The CQ bit was checked by acleung@chromium.org
6 years, 10 months ago (2014-02-26 21:07:07 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/23345004/1469001
6 years, 10 months ago (2014-02-26 21:08:22 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 21:34:39 UTC) #31
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=52250
6 years, 10 months ago (2014-02-26 21:34:40 UTC) #32
markusheintz_
LGTM
6 years, 10 months ago (2014-02-26 23:45:50 UTC) #33
acleung1
The CQ bit was checked by acleung@chromium.org
6 years, 10 months ago (2014-02-27 00:33:25 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/acleung@chromium.org/23345004/1469001
6 years, 10 months ago (2014-02-27 00:38:40 UTC) #35
acleung1
The CQ bit was unchecked by acleung@chromium.org
6 years, 9 months ago (2014-02-27 06:02:33 UTC) #36
acleung1
The CQ bit was checked by acleung@chromium.org
6 years, 9 months ago (2014-02-27 06:02:37 UTC) #37
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 13:03:06 UTC) #38
Message was sent while issue was closed.
Change committed as 253765

Powered by Google App Engine
This is Rietveld 408576698