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

Issue 300843013: Install and launch kiosk app from cached crx file at start up. (Closed)

Created:
6 years, 6 months ago by jennyz
Modified:
6 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Install and launch kiosk app from cached crx file at start up. BUG=369552, 379769 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283357

Patch Set 1 #

Total comments: 14

Patch Set 2 : Rebase. #

Total comments: 4

Patch Set 3 : Rebase. #

Patch Set 4 : Correct rebase. #

Patch Set 5 : Replace CrxInstaller with KioskAppExternalLoader for installing kiosk app at start up time. #

Patch Set 6 : Make KioskAppExternalLoader destructor private. #

Patch Set 7 : Fix ExternalProviderImplChromeOSTest.AppMode test case. #

Total comments: 16

Patch Set 8 : Add code review comments, new tests, rebase. #

Patch Set 9 : Remove the new test file from cl. #

Total comments: 8

Patch Set 10 : Address code review comments. #

Total comments: 10

Patch Set 11 : Fix nits. #

Patch Set 12 : Remove the useless offline_enabled_app_profile testing data. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+598 lines, -316 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/app_mode/kiosk_app_external_loader.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_launch_error.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager.h View 1 2 3 4 5 6 7 5 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager.cc View 1 2 3 4 5 6 7 8 9 7 chunks +47 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +11 lines, -42 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_manager_observer.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/startup_app_launcher.h View 1 2 3 4 5 6 7 8 9 3 chunks +21 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/app_mode/startup_app_launcher.cc View 1 2 3 4 5 6 7 8 9 10 9 chunks +116 lines, -69 lines 0 comments Download
M chrome/browser/chromeos/extensions/external_cache.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/login/kiosk_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 10 chunks +227 lines, -57 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +30 lines, -13 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
D chrome/test/data/chromeos/app_mode/offline_enabled_app_profile/Extensions/ajoggoflpgplnnjkjamcmbepjdjdnpdp/1.0.0_0/app_main.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -6 lines 0 comments Download
D chrome/test/data/chromeos/app_mode/offline_enabled_app_profile/Extensions/ajoggoflpgplnnjkjamcmbepjdjdnpdp/1.0.0_0/app_main.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -8 lines 0 comments Download
D chrome/test/data/chromeos/app_mode/offline_enabled_app_profile/Extensions/ajoggoflpgplnnjkjamcmbepjdjdnpdp/1.0.0_0/icon-128.png View 1 2 3 4 5 6 7 8 9 10 11 Binary file 0 comments Download
D chrome/test/data/chromeos/app_mode/offline_enabled_app_profile/Extensions/ajoggoflpgplnnjkjamcmbepjdjdnpdp/1.0.0_0/icon-16.png View 1 2 3 4 5 6 7 8 9 10 11 Binary file 0 comments Download
D chrome/test/data/chromeos/app_mode/offline_enabled_app_profile/Extensions/ajoggoflpgplnnjkjamcmbepjdjdnpdp/1.0.0_0/main.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -19 lines 0 comments Download
D chrome/test/data/chromeos/app_mode/offline_enabled_app_profile/Extensions/ajoggoflpgplnnjkjamcmbepjdjdnpdp/1.0.0_0/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -19 lines 0 comments Download
D chrome/test/data/chromeos/app_mode/offline_enabled_app_profile/Preferences View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -59 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
jennyz
6 years, 6 months ago (2014-05-28 21:27:40 UTC) #1
xiyuan
https://codereview.chromium.org/300843013/diff/1/chrome/browser/chromeos/app_mode/startup_app_launcher.cc File chrome/browser/chromeos/app_mode/startup_app_launcher.cc (right): https://codereview.chromium.org/300843013/diff/1/chrome/browser/chromeos/app_mode/startup_app_launcher.cc#newcode343 chrome/browser/chromeos/app_mode/startup_app_launcher.cc:343: update_check_pending_ = false; We probably could consolidate |crx_cache_pending_| and ...
6 years, 6 months ago (2014-05-29 19:49:01 UTC) #2
jennyz
https://codereview.chromium.org/300843013/diff/1/chrome/browser/chromeos/app_mode/startup_app_launcher.cc File chrome/browser/chromeos/app_mode/startup_app_launcher.cc (right): https://codereview.chromium.org/300843013/diff/1/chrome/browser/chromeos/app_mode/startup_app_launcher.cc#newcode343 chrome/browser/chromeos/app_mode/startup_app_launcher.cc:343: update_check_pending_ = false; On 2014/05/29 19:49:01, xiyuan (OOO until ...
6 years, 5 months ago (2014-07-07 21:11:13 UTC) #3
xiyuan
https://codereview.chromium.org/300843013/diff/170001/chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h File chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h (right): https://codereview.chromium.org/300843013/diff/170001/chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h#newcode23 chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h:23: void SetCurrentAppExtensions(scoped_ptr<base::DictionaryValue> prefs); nit: #include "base/memory/scoped_ptr.h" https://codereview.chromium.org/300843013/diff/170001/chrome/browser/chromeos/app_mode/kiosk_app_manager.h File chrome/browser/chromeos/app_mode/kiosk_app_manager.h ...
6 years, 5 months ago (2014-07-08 21:51:00 UTC) #4
xiyuan
We might want to add a couple more test cases for the scenarios support by ...
6 years, 5 months ago (2014-07-09 16:27:50 UTC) #5
jennyz
https://codereview.chromium.org/300843013/diff/170001/chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h File chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h (right): https://codereview.chromium.org/300843013/diff/170001/chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h#newcode23 chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h:23: void SetCurrentAppExtensions(scoped_ptr<base::DictionaryValue> prefs); On 2014/07/08 21:50:59, xiyuan wrote: > ...
6 years, 5 months ago (2014-07-12 00:03:21 UTC) #6
xiyuan
Mostly good. https://codereview.chromium.org/300843013/diff/250001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc File chrome/browser/chromeos/app_mode/startup_app_launcher.cc (right): https://codereview.chromium.org/300843013/diff/250001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc#newcode248 chrome/browser/chromeos/app_mode/startup_app_launcher.cc:248: ->GetInstalledExtension(app_id_); nit: DCHECK(extension); https://codereview.chromium.org/300843013/diff/250001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc#newcode283 chrome/browser/chromeos/app_mode/startup_app_launcher.cc:283: // Check ...
6 years, 5 months ago (2014-07-14 18:20:55 UTC) #7
jennyz
https://codereview.chromium.org/300843013/diff/250001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc File chrome/browser/chromeos/app_mode/startup_app_launcher.cc (right): https://codereview.chromium.org/300843013/diff/250001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc#newcode248 chrome/browser/chromeos/app_mode/startup_app_launcher.cc:248: ->GetInstalledExtension(app_id_); On 2014/07/14 18:20:54, xiyuan wrote: > nit: DCHECK(extension); ...
6 years, 5 months ago (2014-07-14 22:33:01 UTC) #8
jennyz
6 years, 5 months ago (2014-07-14 22:43:15 UTC) #9
xiyuan
LGTM https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc File chrome/browser/chromeos/app_mode/startup_app_launcher.cc (right): https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc#newcode307 chrome/browser/chromeos/app_mode/startup_app_launcher.cc:307: nit: reset |wait_for_crx_update_|. https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/login/kiosk_browsertest.cc File chrome/browser/chromeos/login/kiosk_browsertest.cc (left): https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/login/kiosk_browsertest.cc#oldcode918 ...
6 years, 5 months ago (2014-07-15 02:32:51 UTC) #10
jennyz
asargent@, would you please review: chrome/browser/extensions/external_provider_impl.cc chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc chrome/browser/chromeos/extensions/external_cache.cc xiyuan@ already reviewed and lgtmed, needs owners ...
6 years, 5 months ago (2014-07-15 05:29:50 UTC) #11
jennyz
https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc File chrome/browser/chromeos/app_mode/startup_app_launcher.cc (right): https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/app_mode/startup_app_launcher.cc#newcode307 chrome/browser/chromeos/app_mode/startup_app_launcher.cc:307: On 2014/07/15 02:32:51, xiyuan wrote: > nit: reset |wait_for_crx_update_|. ...
6 years, 5 months ago (2014-07-15 16:36:41 UTC) #12
jennyz
zel, would you please review: chrome/browser/extensions/external_provider_impl.cc chrome/browser/extensions/external_provider_impl_chromeos_unittest.cc chrome/browser/chromeos/extensions/external_cache.cc xiyuan@ already reviewed and lgtmed, needs owners ...
6 years, 5 months ago (2014-07-15 16:39:25 UTC) #13
jennyz
asargent@, zel thinks you should review these files.
6 years, 5 months ago (2014-07-15 17:27:13 UTC) #14
jennyz
https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/login/kiosk_browsertest.cc File chrome/browser/chromeos/login/kiosk_browsertest.cc (left): https://codereview.chromium.org/300843013/diff/270001/chrome/browser/chromeos/login/kiosk_browsertest.cc#oldcode918 chrome/browser/chromeos/login/kiosk_browsertest.cc:918: SetupAppProfile("chromeos/app_mode/offline_enabled_app_profile"); On 2014/07/15 02:32:51, xiyuan wrote: > We can ...
6 years, 5 months ago (2014-07-15 18:34:24 UTC) #15
asargent_no_longer_on_chrome
chrome/browser/extensions lgtm
6 years, 5 months ago (2014-07-15 19:32:09 UTC) #16
jennyz
The CQ bit was checked by jennyz@chromium.org
6 years, 5 months ago (2014-07-15 20:43:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jennyz@chromium.org/300843013/310001
6 years, 5 months ago (2014-07-15 20:45:01 UTC) #18
commit-bot: I haz the power
Change committed as 283357
6 years, 5 months ago (2014-07-16 05:27:41 UTC) #19
falken
On 2014/07/16 05:27:41, I haz the power (commit-bot) wrote: > Change committed as 283357 There ...
6 years, 5 months ago (2014-07-16 08:11:21 UTC) #20
xiyuan
On 2014/07/16 08:11:21, falken wrote: > On 2014/07/16 05:27:41, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-07-16 16:37:24 UTC) #21
jennyz
6 years, 5 months ago (2014-07-16 16:41:27 UTC) #22
Yes, xiyuan is right. The flaky failure is not caused by this cl (r283357).
Actually this cl removed the code(SetupAppProfile) which causes the
failure. The bot got revision 283345, which is earlier than the revision of
this cl.

Thanks,

Jenny


On Wed, Jul 16, 2014 at 9:37 AM, <xiyuan@chromium.org> wrote:

> On 2014/07/16 08:11:21, falken wrote:
>
>> On 2014/07/16 05:27:41, I haz the power (commit-bot) wrote:
>> > Change committed as 283357
>>
>
>  There are multiple flaky failures on chromium.webkit's Linux Chromium OS
>> bots
>> that look related to this:
>>
>
> http://build.chromium.org/p/chromium.webkit/builders/
> Linux%20ChromiumOS%20Tests%20%28dbg%29%281%29/builds/272
>
> http://build.chromium.org/p/chromium.webkit/builders/
> Linux%20ChromiumOS%20Tests%20%28dbg%29%282%29/builds/304
>
> http://build.chromium.org/p/chromium.webkit/builders/
> Linux%20ChromiumOS%20Tests%20%28dbg%29%283%29/builds/264
>
>  Excerpt from log:
>> ../../chrome/browser/chromeos/login/kiosk_browsertest.cc:453: Failure
>> Value of: base::CopyFile(test_data_dir.Append(chrome::
>> kPreferencesFilename),
>> app_profile_dir.Append(chrome::kPreferencesFilename))
>>    Actual: false
>> Expected: true
>>
>
>  I don't see the failure on chromium waterfall yet, but I think it's just
>>
> because
>
>> it's a flaky failure. E.g., these two builds had different results:
>>
>
> http://build.chromium.org/p/chromium.webkit/builders/
> Linux%20ChromiumOS%20Tests%20%28dbg%29%282%29/builds/304
>
>> (failed)
>>
>
> http://build.chromium.org/p/chromium.webkit/builders/
> Linux%20ChromiumOS%20Tests%20%28dbg%29%282%29/builds/305
>
>> (passed)
>>
>
> This is strange. It looks like the bot does not get the correct revision.
> This
> CL (r283357) deletes the failed line (kiosk_browsertest.cc:453). The
> failure
> looks like the test data file deletion is picked up but not the test code
> itself.
>
> https://codereview.chromium.org/300843013/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698