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

Issue 16844020: app_mode: Add runtime.onRestartRequired event. (Closed)

Created:
7 years, 6 months ago by xiyuan
Modified:
7 years, 6 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, hshi1
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 14

Patch Set 2 : address comments in #1, add test and remove onBrowserUpdateAvailable #

Total comments: 44

Patch Set 3 : restore onBrowserUpdateAvailable and address comments in #2 #

Total comments: 16

Patch Set 4 : for comments in #3 #

Total comments: 2

Patch Set 5 : for comments in #4 #

Patch Set 6 : nodoc for onBrowserUpdateAvailable #

Total comments: 2

Patch Set 7 : add TODO to remove deprecated onBrowserUpdateAvailable #

Total comments: 2

Patch Set 8 : use generated api code #

Total comments: 4

Patch Set 9 : for #8 #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -45 lines) Patch
M chrome/browser/browser_process_platform_part_chromeos.h View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_platform_part_chromeos.cc View 1 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_update_service.h View 1 2 3 4 2 chunks +22 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc View 1 2 3 4 5 6 7 4 chunks +60 lines, -17 lines 0 comments Download
A chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc View 1 2 3 1 chunk +118 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 4 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager.h View 1 4 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/automatic_reboot_manager.cc View 1 2 7 chunks +26 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/system/automatic_reboot_manager_observer.h View 1 2 1 chunk +32 lines, -0 lines 0 comments Download
M chrome/browser/extensions/activity_log/api_name_constants.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/runtime/runtime_api.h View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/runtime/runtime_api.cc View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_messages_apitest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/runtime.json View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -3 lines 0 comments Download
A + chrome/test/data/extensions/api_test/runtime/on_restart_required/background.js View 1 1 chunk +3 lines, -7 lines 0 comments Download
A chrome/test/data/extensions/api_test/runtime/on_restart_required/manifest.json View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
xiyuan
7 years, 6 months ago (2013-06-14 01:06:20 UTC) #1
bartfab (slow)
I don't like the idea of adding yet another singleton. I would strongly prefer that ...
7 years, 6 months ago (2013-06-17 23:30:59 UTC) #2
xiyuan
On 2013/06/17 23:30:59, bartfab wrote: > I don't like the idea of adding yet another ...
7 years, 6 months ago (2013-06-18 00:02:12 UTC) #3
bartfab (slow)
On 2013/06/18 00:02:12, xiyuan wrote: > On 2013/06/17 23:30:59, bartfab wrote: > > I don't ...
7 years, 6 months ago (2013-06-18 00:17:44 UTC) #4
xiyuan
On 2013/06/18 00:17:44, bartfab wrote: > On 2013/06/18 00:02:12, xiyuan wrote: > > On 2013/06/17 ...
7 years, 6 months ago (2013-06-18 04:40:02 UTC) #5
xiyuan
+jyasskin Addressed bartfab@'s comments in #1, added test and removed onBrowserUpdateAvailable. Please take a look. ...
7 years, 6 months ago (2013-06-20 02:17:12 UTC) #6
Matt Perry
https://codereview.chromium.org/16844020/diff/9001/chrome/common/extensions/api/runtime.json File chrome/common/extensions/api/runtime.json (left): https://codereview.chromium.org/16844020/diff/9001/chrome/common/extensions/api/runtime.json#oldcode355 chrome/common/extensions/api/runtime.json:355: "name": "onBrowserUpdateAvailable", This API has already made it out ...
7 years, 6 months ago (2013-06-20 22:42:14 UTC) #7
bartfab (slow)
https://chromiumcodereview.appspot.com/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc File chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc (right): https://chromiumcodereview.appspot.com/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc#newcode57 chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc:57: // Force a chrome restart (not a logout or ...
7 years, 6 months ago (2013-06-21 06:27:58 UTC) #8
xiyuan
CL updated. Please take another look. Thanks. https://codereview.chromium.org/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc File chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc (right): https://codereview.chromium.org/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc#newcode57 chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc:57: // Force ...
7 years, 6 months ago (2013-06-21 16:50:55 UTC) #9
bartfab (slow)
LGTM with some nits. https://chromiumcodereview.appspot.com/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc File chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc (right): https://chromiumcodereview.appspot.com/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc#newcode67 chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc:67: update_service_ = KioskAppUpdateServiceFactory::GetForProfile(profile()); On 2013/06/21 ...
7 years, 6 months ago (2013-06-21 18:18:12 UTC) #10
xiyuan
https://codereview.chromium.org/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc File chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc (right): https://codereview.chromium.org/16844020/diff/9001/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc#newcode67 chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc:67: update_service_ = KioskAppUpdateServiceFactory::GetForProfile(profile()); On 2013/06/21 18:18:12, bartfab wrote: > ...
7 years, 6 months ago (2013-06-21 18:33:17 UTC) #11
bartfab (slow)
Still LGTM. https://codereview.chromium.org/16844020/diff/21001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc File chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc (right): https://codereview.chromium.org/16844020/diff/21001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc#newcode57 chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc:57: // This method is invoked after the ...
7 years, 6 months ago (2013-06-21 18:47:09 UTC) #12
xiyuan
https://codereview.chromium.org/16844020/diff/21001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc File chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc (right): https://codereview.chromium.org/16844020/diff/21001/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc#newcode57 chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc:57: // This method is invoked after the app update ...
7 years, 6 months ago (2013-06-21 19:07:05 UTC) #13
Matt Perry
https://codereview.chromium.org/16844020/diff/22021/chrome/common/extensions/api/runtime.json File chrome/common/extensions/api/runtime.json (right): https://codereview.chromium.org/16844020/diff/22021/chrome/common/extensions/api/runtime.json#newcode355 chrome/common/extensions/api/runtime.json:355: "name": "onBrowserUpdateAvailable", Actually, could you mark this with "nodoc": ...
7 years, 6 months ago (2013-06-21 21:01:30 UTC) #14
xiyuan
https://codereview.chromium.org/16844020/diff/22021/chrome/common/extensions/api/runtime.json File chrome/common/extensions/api/runtime.json (right): https://codereview.chromium.org/16844020/diff/22021/chrome/common/extensions/api/runtime.json#newcode355 chrome/common/extensions/api/runtime.json:355: "name": "onBrowserUpdateAvailable", On 2013/06/21 21:01:30, Matt Perry wrote: > ...
7 years, 6 months ago (2013-06-21 21:10:48 UTC) #15
Matt Perry
https://codereview.chromium.org/16844020/diff/42001/chrome/common/extensions/api/runtime.json File chrome/common/extensions/api/runtime.json (right): https://codereview.chromium.org/16844020/diff/42001/chrome/common/extensions/api/runtime.json#newcode358 chrome/common/extensions/api/runtime.json:358: "nodoc": true, Could you add a TODO comment here ...
7 years, 6 months ago (2013-06-21 21:15:10 UTC) #16
xiyuan
https://codereview.chromium.org/16844020/diff/42001/chrome/common/extensions/api/runtime.json File chrome/common/extensions/api/runtime.json (right): https://codereview.chromium.org/16844020/diff/42001/chrome/common/extensions/api/runtime.json#newcode358 chrome/common/extensions/api/runtime.json:358: "nodoc": true, On 2013/06/21 21:15:11, Matt Perry wrote: > ...
7 years, 6 months ago (2013-06-21 21:20:02 UTC) #17
Matt Perry
https://codereview.chromium.org/16844020/diff/47001/chrome/browser/extensions/api/runtime/runtime_api.cc File chrome/browser/extensions/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/16844020/diff/47001/chrome/browser/extensions/api/runtime/runtime_api.cc#newcode201 chrome/browser/extensions/api/runtime/runtime_api.cc:201: scoped_ptr<ListValue> args(new ListValue); nit: use api::runtime::OnRestartRequired::Create(api::runtime::OnRestartRequired::REASON_APP_UPDATE) and friends instead. ...
7 years, 6 months ago (2013-06-21 21:55:49 UTC) #18
xiyuan
https://codereview.chromium.org/16844020/diff/47001/chrome/browser/extensions/api/runtime/runtime_api.cc File chrome/browser/extensions/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/16844020/diff/47001/chrome/browser/extensions/api/runtime/runtime_api.cc#newcode201 chrome/browser/extensions/api/runtime/runtime_api.cc:201: scoped_ptr<ListValue> args(new ListValue); On 2013/06/21 21:55:49, Matt Perry wrote: ...
7 years, 6 months ago (2013-06-21 22:34:16 UTC) #19
Matt Perry
extensions stuff lgtm with nits https://codereview.chromium.org/16844020/diff/22023/chrome/browser/extensions/api/runtime/runtime_api.cc File chrome/browser/extensions/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/16844020/diff/22023/chrome/browser/extensions/api/runtime/runtime_api.cc#newcode53 chrome/browser/extensions/api/runtime/runtime_api.cc:53: const char kRestartReasonPeriodic[] = ...
7 years, 6 months ago (2013-06-21 22:43:32 UTC) #20
xiyuan
https://codereview.chromium.org/16844020/diff/22023/chrome/browser/extensions/api/runtime/runtime_api.cc File chrome/browser/extensions/api/runtime/runtime_api.cc (right): https://codereview.chromium.org/16844020/diff/22023/chrome/browser/extensions/api/runtime/runtime_api.cc#newcode53 chrome/browser/extensions/api/runtime/runtime_api.cc:53: const char kRestartReasonPeriodic[] = "periodic"; On 2013/06/21 22:43:32, Matt ...
7 years, 6 months ago (2013-06-21 22:57:17 UTC) #21
xiyuan
+sky for owners review: chrome/browser/browser_process_platform_part_chromeos.*
7 years, 6 months ago (2013-06-21 23:01:29 UTC) #22
sky
LGTM
7 years, 6 months ago (2013-06-24 16:03:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/16844020/60001
7 years, 6 months ago (2013-06-24 16:14:39 UTC) #24
xiyuan
7 years, 6 months ago (2013-06-24 20:18:49 UTC) #25
Message was sent while issue was closed.
Committed patchset #10 manually as r208250 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698