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

Issue 2788383003: ChromeOS: Disable ARC when incompatible filesystem is detected. (Closed)

Created:
3 years, 8 months ago by kinaba
Modified:
3 years, 8 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, alemate+watch_chromium.org, oshima+watch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, achuith+watch_chromium.org, lhchavez+watch_chromium.org, victorhsieh+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ChromeOS: Disable ARC when incompatible filesystem is detected. Checks both the user data dir's filesystem and Android version to determine the status. The tricky case is when the browser is crashed and restarted. In that case Profile creation does not go through UserSessionManager. There are three cases to consider: * If the browser has crashed after flushing the pref, restart session correctly reads the value. * If the browser has crashed before flushing the pref in the first sign-in after getting this change, the default value "false" is read. * If the browser has crashed before flushing the pref in subsequent runs, it reads the previously set value--which is safe. Since we never do backward (true->false) migration. We don't see false-positive even though we may encounter false-negative (incorrectly disabling ARC.) Note that the assumption of the 3rd case is valid because we do the ARC version check separately. We may do ARC uprev that can turn the disabling condition true->false as a whole, but that does not revert the filesystem check result that is stored in pref. BUG=699850 TEST=Manually tested all fs+version combinations Review-Url: https://codereview.chromium.org/2788383003 Cr-Commit-Position: refs/heads/master@{#462339} Committed: https://chromium.googlesource.com/chromium/src/+/715a7d91b74fce5547c7a643a092898a7abebe50

Patch Set 1 #

Total comments: 7

Patch Set 2 : use SysInfo for /etc/lsb-release check #

Patch Set 3 : AssertIOAllowed #

Total comments: 20

Patch Set 4 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -4 lines) Patch
M chrome/browser/chromeos/arc/arc_session_manager.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_util.h View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_util.cc View 1 2 3 4 chunks +43 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.h View 1 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 5 chunks +26 lines, -3 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
kinaba
PTAL: +xiyuan +hidehiko +uekawa
3 years, 8 months ago (2017-04-03 11:27:42 UTC) #4
kinaba
On 2017/04/03 11:27:42, kinaba wrote: > PTAL: +xiyuan +hidehiko +uekawa (oops, I'll take care of ...
3 years, 8 months ago (2017-04-03 11:28:33 UTC) #5
xiyuan
https://codereview.chromium.org/2788383003/diff/1/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2788383003/diff/1/chrome/browser/chromeos/arc/arc_util.cc#newcode166 chrome/browser/chromeos/arc/arc_util.cc:166: if (!base::ReadFileToString( Think lsb release info is loaded and ...
3 years, 8 months ago (2017-04-03 16:20:49 UTC) #8
kinaba
Thanks. Updated the CL https://codereview.chromium.org/2788383003/diff/1/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2788383003/diff/1/chrome/browser/chromeos/arc/arc_util.cc#newcode166 chrome/browser/chromeos/arc/arc_util.cc:166: if (!base::ReadFileToString( On 2017/04/03 16:20:49, ...
3 years, 8 months ago (2017-04-04 04:13:56 UTC) #10
xiyuan
lgtm https://codereview.chromium.org/2788383003/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc File chrome/browser/chromeos/login/session/user_session_manager.cc (right): https://codereview.chromium.org/2788383003/diff/1/chrome/browser/chromeos/login/session/user_session_manager.cc#newcode992 chrome/browser/chromeos/login/session/user_session_manager.cc:992: base::PostTaskWithTraitsAndReplyWithResult(FROM_HERE, On 2017/04/04 04:13:56, kinaba wrote: > On ...
3 years, 8 months ago (2017-04-04 15:32:21 UTC) #15
hidehiko
LGTM with requesting more comments. https://codereview.chromium.org/2788383003/diff/40001/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2788383003/diff/40001/chrome/browser/chromeos/arc/arc_util.cc#newcode104 chrome/browser/chromeos/arc/arc_util.cc:104: if (base::SysInfo::IsRunningOnChromeOS()) { Could ...
3 years, 8 months ago (2017-04-04 18:35:13 UTC) #16
Junichi Uekawa
some questions https://codereview.chromium.org/2788383003/diff/40001/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2788383003/diff/40001/chrome/browser/chromeos/arc/arc_util.cc#newcode109 chrome/browser/chromeos/arc/arc_util.cc:109: &arc_sdk_version) || If CHROMEOS_ARC_ANDROID_SDK_VERSION is not there, ...
3 years, 8 months ago (2017-04-04 23:48:13 UTC) #17
kinaba
Thanks for the comments https://codereview.chromium.org/2788383003/diff/40001/chrome/browser/chromeos/arc/arc_util.cc File chrome/browser/chromeos/arc/arc_util.cc (right): https://codereview.chromium.org/2788383003/diff/40001/chrome/browser/chromeos/arc/arc_util.cc#newcode11 chrome/browser/chromeos/arc/arc_util.cc:11: #include "base/files/file_util.h" On 2017/04/04 15:32:21, ...
3 years, 8 months ago (2017-04-05 02:35:28 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2788383003/60001
3 years, 8 months ago (2017-04-06 03:09:36 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 03:15:12 UTC) #29
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/715a7d91b74fce5547c7a643a092...

Powered by Google App Engine
This is Rietveld 408576698