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

Issue 13071002: Turn on component updater on chromeos, only for the pnacl component. (Closed)

Created:
7 years, 9 months ago by jvoung (off chromium)
Modified:
7 years, 8 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Turn on component updater on chromeos, only for the pnacl component. Make the pnacl component place files in a profile-specific directory for chromeos. We don't want to share data between users on chromeos because of questions about integrity of these files. This adds a notification watcher and will re-register pnacl with a different version whenever the user logs into a different account. Files are installed to a stateful partition, which should be okay. The stateful partition is mounted no-exec, but the pnacl files are not typical executables. This is a temporary solution to help with testing out PNaCl on chromeos. We will need to find a different solution later that does not involve multiple copies, one for each user. BUG=221381 TEST= manual with: 1) export GYP_DEFINES="chromeos=1" 2) build 3) out/Release/chrome --enable-pnacl --enable-nacl --user-data-dir=/tmp/temp_profile_chromeos --login-profile=user --login-manager 4) wait 20 seconds and see /tmp/temp_profile_chromeos/test-user/pnacl/0.0.0.5 show up Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192415 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192969

Patch Set 1 #

Patch Set 2 : make one for testing_browser_process #

Patch Set 3 : fix some bugs #

Patch Set 4 : fix dtor / vtable #

Patch Set 5 : check if logged in first to not waste early ping on the OTR profile #

Total comments: 12

Patch Set 6 : cleanup #

Total comments: 8

Patch Set 7 : cleanup #

Patch Set 8 : filepath #

Total comments: 11

Patch Set 9 : review #

Total comments: 4

Patch Set 10 : formatting #

Patch Set 11 : add unittest #

Patch Set 12 : move other macro to end too #

Patch Set 13 : comments for what to fix when retrying #

Patch Set 14 : fix race in observer vs cus setting, profile on UI thread #

Total comments: 2

Patch Set 15 : debug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -79 lines) Patch
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +7 lines, -10 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +49 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/pnacl/pnacl_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 11 chunks +113 lines, -53 lines 0 comments Download
A chrome/browser/component_updater/pnacl/pnacl_profile_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/component_updater/pnacl/pnacl_profile_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/test/component_updater_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +115 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Dmitry Polukhin
LGTM with nits https://codereview.chromium.org/13071002/diff/9014/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/13071002/diff/9014/chrome/browser/chrome_browser_main.cc#newcode490 chrome/browser/chrome_browser_main.cc:490: if (!command_line.HasSwitch(switches::kDisableCRLSets)) Nit, please add {} ...
7 years, 9 months ago (2013-03-26 11:59:56 UTC) #1
jvoung - send to chromium...
https://codereview.chromium.org/13071002/diff/9014/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/13071002/diff/9014/chrome/browser/chrome_browser_main.cc#newcode490 chrome/browser/chrome_browser_main.cc:490: if (!command_line.HasSwitch(switches::kDisableCRLSets)) On 2013/03/26 11:59:56, Dmitry Polukhin wrote: > ...
7 years, 9 months ago (2013-03-26 15:46:53 UTC) #2
jvoung - send to chromium...
sky, can you give an OWNERS review for chrome/test and chrome/browser, or should I look ...
7 years, 9 months ago (2013-03-26 16:10:54 UTC) #3
sky
The chrome/browser and chrome/test changes LGTM, but get a local reviewer for the profile change ...
7 years, 9 months ago (2013-03-26 21:04:43 UTC) #4
jvoung (off chromium)
Thanks for the review. cpu: Is this change okay w.r.t component updater usage? davemoore: Is ...
7 years, 9 months ago (2013-03-26 21:33:34 UTC) #5
jvoung (off chromium)
On 2013/03/26 21:33:34, jvoung (cr) wrote: > Thanks for the review. > > cpu: Is ...
7 years, 9 months ago (2013-03-28 15:57:54 UTC) #6
cpu_(ooo_6.6-7.5)
to your question: yes I'll finish the review tomorrow. Ping me then. Lots of perf ...
7 years, 9 months ago (2013-03-29 03:09:07 UTC) #7
jvoung (off chromium)
On 2013/03/29 03:09:07, cpu wrote: > to your question: yes > > I'll finish the ...
7 years, 8 months ago (2013-03-29 21:45:14 UTC) #8
cpu_(ooo_6.6-7.5)
https://chromiumcodereview.appspot.com/13071002/diff/27002/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc File chrome/browser/component_updater/pnacl/pnacl_component_installer.cc (right): https://chromiumcodereview.appspot.com/13071002/diff/27002/chrome/browser/component_updater/pnacl/pnacl_component_installer.cc#newcode375 chrome/browser/component_updater/pnacl/pnacl_component_installer.cc:375: pci->set_current_version(version); see my comment in the header. The passing ...
7 years, 8 months ago (2013-03-29 22:20:55 UTC) #9
cpu_(ooo_6.6-7.5)
https://chromiumcodereview.appspot.com/13071002/diff/27002/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): https://chromiumcodereview.appspot.com/13071002/diff/27002/chrome/browser/browser_process.h#newcode222 chrome/browser/browser_process.h:222: virtual PnaclComponentInstaller* pnacl_component_installer() = 0; why do we need ...
7 years, 8 months ago (2013-03-29 22:24:38 UTC) #10
jvoung (off chromium)
Just answering some questions first, will send out a revised version. https://chromiumcodereview.appspot.com/13071002/diff/27002/chrome/browser/browser_process.h File chrome/browser/browser_process.h (right): ...
7 years, 8 months ago (2013-03-29 22:54:52 UTC) #11
jvoung (off chromium)
https://chromiumcodereview.appspot.com/13071002/diff/27002/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://chromiumcodereview.appspot.com/13071002/diff/27002/chrome/browser/browser_process_impl.cc#newcode760 chrome/browser/browser_process_impl.cc:760: // component for ChromeOS. On 2013/03/29 22:54:52, jvoung (cr) ...
7 years, 8 months ago (2013-03-29 23:22:40 UTC) #12
jvoung (off chromium)
ptal
7 years, 8 months ago (2013-04-01 19:38:58 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/13071002/42001
7 years, 8 months ago (2013-04-03 20:17:43 UTC) #14
cpu_(ooo_6.6-7.5)
lgtm One request though, re-registration is something is not tested, can you please write a ...
7 years, 8 months ago (2013-04-03 21:56:27 UTC) #15
jvoung (off chromium)
Thanks for the review! Added unit_test for re-registration. https://codereview.chromium.org/13071002/diff/42001/chrome/browser/component_updater/pnacl/pnacl_profile_observer.h File chrome/browser/component_updater/pnacl/pnacl_profile_observer.h (right): https://codereview.chromium.org/13071002/diff/42001/chrome/browser/component_updater/pnacl/pnacl_profile_observer.h#newcode21 chrome/browser/component_updater/pnacl/pnacl_profile_observer.h:21: int ...
7 years, 8 months ago (2013-04-04 04:06:24 UTC) #16
cpu_(ooo_6.6-7.5)
lgtm
7 years, 8 months ago (2013-04-04 18:22:26 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/13071002/75002
7 years, 8 months ago (2013-04-04 18:48:41 UTC) #18
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 8 months ago (2013-04-04 18:50:29 UTC) #19
jvoung (off chromium)
Committed patchset #12 manually as r192415 (presubmit successful).
7 years, 8 months ago (2013-04-04 23:18:31 UTC) #20
jvoung (off chromium)
Sorry for the churn, but the last CL (patch set 12) had some bugs (see ...
7 years, 8 months ago (2013-04-05 23:20:48 UTC) #21
Dmitry Polukhin
LGTM
7 years, 8 months ago (2013-04-08 14:54:07 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jvoung@chromium.org/13071002/119001
7 years, 8 months ago (2013-04-08 21:24:05 UTC) #23
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 8 months ago (2013-04-08 22:17:27 UTC) #24
jvoung (off chromium)
7 years, 8 months ago (2013-04-09 00:40:03 UTC) #25
Message was sent while issue was closed.
Committed patchset #15 manually as r192969 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698