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

Issue 11348301: Force-load a lazy background page whenever an extension is enabled. (Closed)

Created:
8 years ago by Marijn Kruisselbrink
Modified:
8 years ago
Reviewers:
Matt Perry
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Force-load a lazy background page whenever an extension is enabled. Additionally this changes the app.runtime.onLaunched event to always be delivered, even if it isn't known yet if the extension is interested in that event. This is necesary because trying to launch an app is one of the ways an extension can be re-enabled, but there isn't an easy way to wait for the app launching code to wait for the background page to be loaded before actually trying to launch an app after re-enabling it. BUG=163379 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170389

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix comments #

Total comments: 4

Patch Set 3 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -9 lines) Patch
M chrome/browser/extensions/api/app_runtime/app_runtime_api.cc View 1 2 4 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/extensions/event_router.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Marijn Kruisselbrink
This works, but I don't really like the changes to the app.runtime.onLaunched handling. But solving ...
8 years ago (2012-11-29 20:10:07 UTC) #1
Matt Perry
On 2012/11/29 20:10:07, Marijn Kruisselbrink wrote: > This works, but I don't really like the ...
8 years ago (2012-11-29 20:24:03 UTC) #2
Matt Perry
https://codereview.chromium.org/11348301/diff/1/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc File chrome/browser/extensions/api/app_runtime/app_runtime_api.cc (right): https://codereview.chromium.org/11348301/diff/1/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc#newcode47 chrome/browser/extensions/api/app_runtime/app_runtime_api.cc:47: extension->id()); If you go this route, can you move ...
8 years ago (2012-11-29 20:24:46 UTC) #3
Marijn Kruisselbrink
On 2012/11/29 20:24:03, Matt Perry wrote: > I don't know the app code, but presumably ...
8 years ago (2012-11-29 21:07:19 UTC) #4
Matt Perry
lgtm https://codereview.chromium.org/11348301/diff/6001/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc File chrome/browser/extensions/api/app_runtime/app_runtime_api.cc (right): https://codereview.chromium.org/11348301/diff/6001/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc#newcode38 chrome/browser/extensions/api/app_runtime/app_runtime_api.cc:38: system->event_router()->AddLazyEventListener(kOnLaunchedEvent, extension_id); add a comment explaining why this ...
8 years ago (2012-11-29 22:03:21 UTC) #5
Marijn Kruisselbrink
https://codereview.chromium.org/11348301/diff/6001/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc File chrome/browser/extensions/api/app_runtime/app_runtime_api.cc (right): https://codereview.chromium.org/11348301/diff/6001/chrome/browser/extensions/api/app_runtime/app_runtime_api.cc#newcode38 chrome/browser/extensions/api/app_runtime/app_runtime_api.cc:38: system->event_router()->AddLazyEventListener(kOnLaunchedEvent, extension_id); On 2012/11/29 22:03:21, Matt Perry wrote: > ...
8 years ago (2012-11-30 00:51:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mek@chromium.org/11348301/9001
8 years ago (2012-11-30 00:52:13 UTC) #7
commit-bot: I haz the power
8 years ago (2012-11-30 03:54:38 UTC) #8
Message was sent while issue was closed.
Change committed as 170389

Powered by Google App Engine
This is Rietveld 408576698