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

Issue 733533002: Do not start RunLoop of MessagePumpForUI in NestedMessagePumpAndroid (Closed)

Created:
6 years, 1 month ago by Jaekyun Seok (inactive)
Modified:
6 years, 1 month ago
CC:
chromium-reviews, jam, erikwright+watch_chromium.org, sadrul, darin-cc_chromium.org, bulach, starodub
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Do not start RunLoop of MessagePumpForUI in NestedMessagePumpAndroid MessagePumpForUI starts one RunLoop in Start(), and so all other RunLoops attached to NestedMessagePumpAndroid become nested to the first one. This CL modifies NestedMessagePumpAndroid not to call methods of MessagePumpForUI including Start(). And a quit request to finish the first RunLoop of MessagePumpForUI will be ignored when it wasn't started. BUG=432737 Committed: https://crrev.com/617edc52980c48dc46673feda23a6a40401e5dda Cr-Commit-Position: refs/heads/master@{#304709}

Patch Set 1 #

Patch Set 2 : Fix build failure #

Patch Set 3 : Fix failure of FrameTreeBrowserTest.FrameTreeAfterCrash #

Total comments: 4

Patch Set 4 : Skip quit request when loop isn't running #

Total comments: 5

Patch Set 5 : Use anonymous namespace for CallbackChecker #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -9 lines) Patch
M content/browser/browser_main_runner.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M content/public/test/nested_message_pump_android.cc View 1 2 3 4 chunks +0 lines, -7 lines 0 comments Download
M content/test/content_browser_test_test.cc View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
Jaekyun Seok (inactive)
Please review this CL to fix a bug in content_browsertests on android platform.
6 years, 1 month ago (2014-11-17 04:21:15 UTC) #2
ncarter (slow)
https://codereview.chromium.org/733533002/diff/40001/content/browser/media/cdm/browser_cdm_manager.cc File content/browser/media/cdm/browser_cdm_manager.cc (right): https://codereview.chromium.org/733533002/diff/40001/content/browser/media/cdm/browser_cdm_manager.cc#newcode85 content/browser/media/cdm/browser_cdm_manager.cc:85: // the entry. For example, see FrameTreeBrowserTest.FrameTreeAfterCrash test. Link ...
6 years, 1 month ago (2014-11-17 18:47:01 UTC) #4
ncarter (slow)
Could you add the browsertest I posted in the bug report http://crbug.com/432737 ? Does it ...
6 years, 1 month ago (2014-11-17 19:08:03 UTC) #5
Lei Zhang
+bulach who has actually touched message_pump_android.cc.
6 years, 1 month ago (2014-11-17 21:57:38 UTC) #7
bulach
sorry, I'm no longer actively working in chromium, adding skyostil and starodub as my replacements ...
6 years, 1 month ago (2014-11-17 22:08:42 UTC) #9
Jaekyun Seok (inactive)
PTAL. I added ncarter's test and modified codes to ignore the quit request in browser_main_runner ...
6 years, 1 month ago (2014-11-18 03:10:07 UTC) #10
Jaekyun Seok (inactive)
Hi Charlie, Please review this CL to fix a bug in content_browsertests on android platform; ...
6 years, 1 month ago (2014-11-18 03:13:39 UTC) #12
Sami
https://codereview.chromium.org/733533002/diff/60001/content/browser/media/cdm/browser_cdm_manager.cc File content/browser/media/cdm/browser_cdm_manager.cc (right): https://codereview.chromium.org/733533002/diff/60001/content/browser/media/cdm/browser_cdm_manager.cc#newcode87 content/browser/media/cdm/browser_cdm_manager.cc:87: if (g_browser_cdm_manager_map.Get()[render_process_id_] == this) Should this change be in ...
6 years, 1 month ago (2014-11-18 12:02:25 UTC) #13
ncarter (slow)
This new version looks much better. lgtm https://codereview.chromium.org/733533002/diff/60001/content/browser/media/cdm/browser_cdm_manager.cc File content/browser/media/cdm/browser_cdm_manager.cc (right): https://codereview.chromium.org/733533002/diff/60001/content/browser/media/cdm/browser_cdm_manager.cc#newcode87 content/browser/media/cdm/browser_cdm_manager.cc:87: if (g_browser_cdm_manager_map.Get()[render_process_id_] ...
6 years, 1 month ago (2014-11-18 18:02:53 UTC) #14
Charlie Reis
LGTM with Nick's suggestions.
6 years, 1 month ago (2014-11-18 18:23:30 UTC) #15
Jaekyun Seok (inactive)
https://codereview.chromium.org/733533002/diff/60001/content/browser/media/cdm/browser_cdm_manager.cc File content/browser/media/cdm/browser_cdm_manager.cc (right): https://codereview.chromium.org/733533002/diff/60001/content/browser/media/cdm/browser_cdm_manager.cc#newcode87 content/browser/media/cdm/browser_cdm_manager.cc:87: if (g_browser_cdm_manager_map.Get()[render_process_id_] == this) On 2014/11/18 18:02:53, ncarter wrote: ...
6 years, 1 month ago (2014-11-18 22:38:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/733533002/80001
6 years, 1 month ago (2014-11-18 22:40:55 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 1 month ago (2014-11-19 00:11:15 UTC) #19
commit-bot: I haz the power
6 years, 1 month ago (2014-11-19 00:12:49 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/617edc52980c48dc46673feda23a6a40401e5dda
Cr-Commit-Position: refs/heads/master@{#304709}

Powered by Google App Engine
This is Rietveld 408576698