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

Issue 514273003: Check for channel and flag before allowing demo mode. (Closed)

Created:
6 years, 3 months ago by rkc
Modified:
6 years, 3 months ago
Reviewers:
xiyuan
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, merkulova
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Check for channel and flag before allowing demo mode. If we're running a test image or have the --disable-demo-mode flag specified we should not be launching demo mode. The channel check doesn't exist for the HID screen. This CL moves the check into the main demo mode detector so if it is called from anywhere, the check is always performed. R=xiyuan@chromium.org BUG=398271 Committed: https://crrev.com/ac4db7aca56d6ea9cda598f7076690de8a90df79 Cr-Commit-Position: refs/heads/master@{#292529}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -16 lines) Patch
M chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/hid_detection_screen_handler.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/network_screen_handler.cc View 3 chunks +0 lines, -14 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
rkc
6 years, 3 months ago (2014-08-28 19:16:19 UTC) #1
xiyuan
lgtm https://codereview.chromium.org/514273003/diff/1/chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc File chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc (right): https://codereview.chromium.org/514273003/diff/1/chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc#newcode40 chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc:40: if (base::SysInfo::IsRunningOnChromeOS()) { nit: insert an empty line ...
6 years, 3 months ago (2014-08-28 19:25:51 UTC) #2
rkc
https://codereview.chromium.org/514273003/diff/1/chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc File chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc (right): https://codereview.chromium.org/514273003/diff/1/chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc#newcode40 chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc:40: if (base::SysInfo::IsRunningOnChromeOS()) { On 2014/08/28 19:25:51, xiyuan wrote: > ...
6 years, 3 months ago (2014-08-28 19:38:19 UTC) #3
rkc
The CQ bit was checked by rkc@chromium.org
6 years, 3 months ago (2014-08-28 19:38:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rkc@chromium.org/514273003/20001
6 years, 3 months ago (2014-08-28 19:38:42 UTC) #5
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 89d25932a2392e8933497743832c9afb2f0eaa6e
6 years, 3 months ago (2014-08-29 01:02:43 UTC) #6
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:04:36 UTC) #7
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ac4db7aca56d6ea9cda598f7076690de8a90df79
Cr-Commit-Position: refs/heads/master@{#292529}

Powered by Google App Engine
This is Rietveld 408576698