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

Issue 10828218: Add chrome.runtime.onStartup, which is fired on browser start. (Closed)

Created:
8 years, 4 months ago by Matt Perry
Modified:
8 years, 4 months ago
Reviewers:
Yoyo Zhou
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org
Visibility:
Public.

Description

Add chrome.runtime.onStartup, which is fired on browser start. I reused LazyBackgroundTaskQueue so that this works for regular background pages, which may not be fully loaded by the time this event is dispatched. BUG=132328 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=152017

Patch Set 1 #

Total comments: 7

Patch Set 2 : merge trunk #

Patch Set 3 : crash fix #

Patch Set 4 : fix unnecessary start #

Total comments: 1

Patch Set 5 : rm debug logs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -27 lines) Patch
M chrome/browser/extensions/api/runtime/runtime_api.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/runtime/runtime_api.cc View 1 2 3 4 1 chunk +43 lines, -1 line 0 comments Download
M chrome/browser/extensions/event_router.cc View 1 5 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 4 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/extensions/lazy_background_task_queue.cc View 1 4 4 chunks +13 lines, -12 lines 0 comments Download
M chrome/common/extensions/api/runtime.json View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/apps/runtime.html View 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/extensions/runtime.html View 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Matt Perry
aa: FYI yoz: please review I think I'll have to rename LazyBackgroundTaskQueue now that I'm ...
8 years, 4 months ago (2012-08-08 23:48:54 UTC) #1
Yoyo Zhou
LGTM. Seems fine to me to treat non-lazy background pages as lazy background pages that ...
8 years, 4 months ago (2012-08-09 00:49:17 UTC) #2
Matt Perry
http://codereview.chromium.org/10828218/diff/1/chrome/browser/extensions/api/runtime/runtime_api.cc File chrome/browser/extensions/api/runtime/runtime_api.cc (right): http://codereview.chromium.org/10828218/diff/1/chrome/browser/extensions/api/runtime/runtime_api.cc#newcode69 chrome/browser/extensions/api/runtime/runtime_api.cc:69: if (!g_browser_process->profile_manager()->IsValidProfile(profile)) On 2012/08/09 00:49:17, Yoyo Zhou wrote: > ...
8 years, 4 months ago (2012-08-15 20:35:45 UTC) #3
Yoyo Zhou
http://codereview.chromium.org/10828218/diff/1/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): http://codereview.chromium.org/10828218/diff/1/chrome/browser/extensions/extension_process_manager.cc#newcode106 chrome/browser/extensions/extension_process_manager.cc:106: profile, (*extension)->id()); On 2012/08/15 20:35:45, Matt Perry wrote: > ...
8 years, 4 months ago (2012-08-15 20:39:55 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/10828218/10
8 years, 4 months ago (2012-08-16 00:03:38 UTC) #5
commit-bot: I haz the power
Try job failure for 10828218-10 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-16 00:59:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/10828218/12
8 years, 4 months ago (2012-08-16 01:25:28 UTC) #7
commit-bot: I haz the power
Try job failure for 10828218-12 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-16 04:54:39 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/10828218/4014
8 years, 4 months ago (2012-08-16 21:26:39 UTC) #9
Matt Perry
FYI https://chromiumcodereview.appspot.com/10828218/diff/9005/chrome/browser/extensions/api/runtime/runtime_api.cc File chrome/browser/extensions/api/runtime/runtime_api.cc (right): https://chromiumcodereview.appspot.com/10828218/diff/9005/chrome/browser/extensions/api/runtime/runtime_api.cc#newcode45 chrome/browser/extensions/api/runtime/runtime_api.cc:45: if (extension && extension->has_persistent_background_page() && first_call && I ...
8 years, 4 months ago (2012-08-16 22:06:44 UTC) #10
commit-bot: I haz the power
Try job failure for 10828218-4014 (retry) on linux_rel for step "interactive_ui_tests". It's a second try, ...
8 years, 4 months ago (2012-08-16 23:11:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/10828218/4014
8 years, 4 months ago (2012-08-16 23:17:20 UTC) #12
commit-bot: I haz the power
8 years, 4 months ago (2012-08-17 02:14:25 UTC) #13
Change committed as 152017

Powered by Google App Engine
This is Rietveld 408576698