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

Issue 10835030: device_orientation::ProviderImpl to stop polling thread asynchronously (Closed)

Created:
8 years, 4 months ago by pivanof
Modified:
8 years, 4 months ago
Reviewers:
hans
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, aousterh
Base URL:
https://src.chromium.org/chrome/trunk/src/
Visibility:
Public.

Description

device_orientation::ProviderImpl to stop polling thread asynchronously and avoid doing that on the thread disallowing IO. Encapsulate all tasks that need to be done on polling thread into a different class and allow it to be deleted asynchronously. Also update unit tests as MockOrientationFactory is no longer guaranteed to be deleted after one test is done and before next test is starting. BUG=72286 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149117

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -127 lines) Patch
M content/browser/device_orientation/provider_impl.h View 1 2 3 chunks +7 lines, -25 lines 0 comments Download
M content/browser/device_orientation/provider_impl.cc View 1 2 3 5 chunks +162 lines, -99 lines 0 comments Download
M content/browser/device_orientation/provider_unittest.cc View 1 2 11 chunks +23 lines, -3 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
pivanof
hans: Please review. Statistics for provider_impl.cc shows big numbers but it mostly consists of shuffling ...
8 years, 4 months ago (2012-07-30 03:29:12 UTC) #1
hans
+aousterh, who is currently doing some work on ProviderImpl
8 years, 4 months ago (2012-07-30 09:17:52 UTC) #2
hans
Thanks very much for working on this! Just a couple of nits. https://chromiumcodereview.appspot.com/10835030/diff/2001/content/browser/device_orientation/provider_impl.cc File content/browser/device_orientation/provider_impl.cc ...
8 years, 4 months ago (2012-07-30 12:56:40 UTC) #3
pivanof
Agreed with everything and updated. On 2012/07/30 12:56:40, hans wrote: > https://chromiumcodereview.appspot.com/10835030/diff/2001/content/browser/device_orientation/provider_impl.h > File content/browser/device_orientation/provider_impl.h ...
8 years, 4 months ago (2012-07-30 16:43:42 UTC) #4
hans
On 2012/07/30 16:43:42, pivanof wrote: > Agreed with everything and updated. > > On 2012/07/30 ...
8 years, 4 months ago (2012-07-30 16:59:35 UTC) #5
pivanof
hans: I've updated to fix compilation failure in Win and test failure on Mac (I ...
8 years, 4 months ago (2012-07-30 17:59:50 UTC) #6
hans
On 2012/07/30 17:59:50, pivanof wrote: > hans: I've updated to fix compilation failure in Win ...
8 years, 4 months ago (2012-07-30 18:40:47 UTC) #7
hans
On 2012/07/30 18:40:47, hans wrote: > Thanks! I've started new try jobs. oh, and the ...
8 years, 4 months ago (2012-07-30 18:41:16 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/paivanof@gmail.com/10835030/6002
8 years, 4 months ago (2012-07-30 20:16:49 UTC) #9
commit-bot: I haz the power
Try job failure for 10835030-6002 (retry) (retry) on win_rel for step "browser_tests". It's a second ...
8 years, 4 months ago (2012-07-30 23:56:07 UTC) #10
pivanof
hans: Do I understand correctly that if try job failure looks completely unrelated and earlier ...
8 years, 4 months ago (2012-07-31 00:10:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/paivanof@gmail.com/10835030/6002
8 years, 4 months ago (2012-07-31 00:48:26 UTC) #12
commit-bot: I haz the power
Change committed as 149117
8 years, 4 months ago (2012-07-31 02:15:59 UTC) #13
hans
8 years, 4 months ago (2012-07-31 10:31:19 UTC) #14
On 2012/07/31 00:10:32, pivanof wrote:
> hans: Do I understand correctly that if try job failure looks completely
> unrelated and earlier the same (?) try job was successful I should just
> re-commit?

That's correct. Looks like it landed successfully :)

Powered by Google App Engine
This is Rietveld 408576698