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

Issue 112663007: Test Keeping NaCl plugins used in app background pages alive when active. (Closed)

Created:
6 years, 11 months ago by scheib
Modified:
6 years, 11 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Test Keeping NaCl plugins used in app background pages alive when active. (Re-landing with fixes from https://codereview.chromium.org/111563006/ ) Activity in Native Client plugins results in IPC messages sent to the BrowserPpapiHostImpl and routed to call extensions::ProcessManager::KeepaliveImpulse. Testing patch, builds on implementation: https://codereview.chromium.org/61063003/ Design doc: https://docs.google.com/a/chromium.org/document/d/1mI0lS1rfAf-BAGLmWAEcWy37Xq9dOvgfMx8OqeUMXts/edit# BUG=298339 No change to mseaborn owned file since last LGTM: TBR=mseaborn@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243021

Patch Set 1 : Previous landed patch with error. #

Patch Set 2 : Fix callbacks keeping reference to message loop #

Total comments: 7

Patch Set 3 : Cleaner fix by simply clearing callbacks in individual tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+319 lines, -3 lines) Patch
M chrome/browser/extensions/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/app_background_page_apitest.cc View 1 2 5 chunks +126 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +2 lines, -1 line 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 chunk +5 lines, -1 line 0 comments Download
M extensions/browser/process_manager.h View 2 2 chunks +11 lines, -0 lines 0 comments Download
M extensions/browser/process_manager.cc View 2 3 chunks +17 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_main_nacl.cc View 5 chunks +17 lines, -0 lines 0 comments Download
M ppapi/shared_impl/ppapi_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/ppapi_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A ppapi/tests/extensions/background_keepalive/background.cc View 1 chunk +63 lines, -0 lines 0 comments Download
A ppapi/tests/extensions/background_keepalive/background.js View 1 chunk +41 lines, -0 lines 0 comments Download
A ppapi/tests/extensions/background_keepalive/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download
M ppapi/tests/extensions/extensions.gyp View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
scheib
Fixing errors in previous version of this testing patch.
6 years, 11 months ago (2014-01-02 19:11:48 UTC) #1
yzshen1
https://codereview.chromium.org/112663007/diff/40001/chrome/browser/extensions/app_background_page_apitest.cc File chrome/browser/extensions/app_background_page_apitest.cc (right): https://codereview.chromium.org/112663007/diff/40001/chrome/browser/extensions/app_background_page_apitest.cc#newcode613 chrome/browser/extensions/app_background_page_apitest.cc:613: ASSERT_NO_FATAL_FAILURE(active_impulse_counter.Wait()); Why do we need this? ASSERT_TRUE() in Wait() ...
6 years, 11 months ago (2014-01-03 22:10:10 UTC) #2
scheib
Here's an alternate fix which doesn't change ProcessManager to be aware of clearing callbacks. It's ...
6 years, 11 months ago (2014-01-03 23:11:29 UTC) #3
yzshen1
LGTM Thanks! https://codereview.chromium.org/112663007/diff/40001/chrome/browser/extensions/app_background_page_apitest.cc File chrome/browser/extensions/app_background_page_apitest.cc (right): https://codereview.chromium.org/112663007/diff/40001/chrome/browser/extensions/app_background_page_apitest.cc#newcode613 chrome/browser/extensions/app_background_page_apitest.cc:613: ASSERT_NO_FATAL_FAILURE(active_impulse_counter.Wait()); Thanks, I didn't know that! On ...
6 years, 11 months ago (2014-01-03 23:23:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scheib@chromium.org/112663007/390001
6 years, 11 months ago (2014-01-04 02:41:50 UTC) #5
commit-bot: I haz the power
Change committed as 243021
6 years, 11 months ago (2014-01-04 12:16:51 UTC) #6
ckocagil
6 years, 11 months ago (2014-01-04 22:29:52 UTC) #7
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/124313005/ by ckocagil@chromium.org.

The reason for reverting is: Broke XP bots:
http://build.chromium.org/p/chromium.win/builders/XP%20Tests%20%282%29/builds....

Powered by Google App Engine
This is Rietveld 408576698