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

Issue 264743014: Move chrome.runtime to //extensions. (Closed)

Created:
6 years, 7 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tfarina, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Move chrome.runtime to //extensions. This moves the runtime API schema and implementation to //extensions, offloading some of its responsibilities out to a new RuntimeAPIDelegate provided by the active ExtensionsBrowserClient. BUG=369391 TBR=derat for mechanical chromeos changes TBR=tzik for +webkit/browser/fileapi to extensions/browser/DEPS TBR=sky for new chrome/test dependency Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268749

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 26

Patch Set 3 : rebase, renames #

Total comments: 2

Patch Set 4 : Remove last_error.js hard dependency on extension.lastError #

Patch Set 5 : rebase #

Patch Set 6 : make clang, cros happy #

Total comments: 11

Patch Set 7 : Move PlatformInfo to runtime namespace, clean up #

Patch Set 8 : fix android, extensions_unittests #

Patch Set 9 : prevent runtime impl from handling invalid update versions #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1008 lines, -1947 lines) Patch
M apps/shell/app_shell.gyp View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M apps/shell/browser/shell_extensions_browser_client.cc View 2 chunks +7 lines, -0 lines 0 comments Download
A apps/shell/browser/shell_runtime_api_delegate.h View 1 2 3 4 5 6 1 chunk +38 lines, -0 lines 0 comments Download
A apps/shell/browser/shell_runtime_api_delegate.cc View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
M apps/shell/common/shell_extensions_client.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_property_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.h View 1 2 3 4 5 6 1 chunk +86 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/runtime/chrome_runtime_api_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +284 lines, -0 lines 0 comments Download
D chrome/browser/extensions/api/runtime/runtime_api.h View 1 1 chunk +0 lines, -211 lines 0 comments Download
D chrome/browser/extensions/api/runtime/runtime_api.cc View 1 1 chunk +0 lines, -678 lines 0 comments Download
D chrome/browser/extensions/api/runtime/runtime_apitest.cc View 1 chunk +0 lines, -129 lines 0 comments Download
M chrome/browser/extensions/browser_context_keyed_service_factories.cc View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extensions_browser_client.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_messages_apitest.cc View 1 2 3 4 5 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/installed_loader.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 2 chunks +0 lines, -53 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
D chrome/common/extensions/api/runtime.json View 1 chunk +0 lines, -471 lines 0 comments Download
M chrome/renderer/resources/extensions/last_error.js View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/DEPS View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M extensions/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A + extensions/browser/api/runtime/runtime_api.h View 1 2 3 4 5 6 5 chunks +44 lines, -49 lines 0 comments Download
A + extensions/browser/api/runtime/runtime_api.cc View 1 2 3 4 5 6 15 chunks +136 lines, -297 lines 0 comments Download
A extensions/browser/api/runtime/runtime_api_delegate.h View 1 2 3 4 5 6 1 chunk +77 lines, -0 lines 0 comments Download
A extensions/browser/api/runtime/runtime_api_delegate.cc View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
A + extensions/browser/api/runtime/runtime_apitest.cc View 3 chunks +5 lines, -7 lines 0 comments Download
M extensions/browser/browser_context_keyed_service_factories.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M extensions/browser/extensions_browser_client.h View 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/test_extensions_browser_client.cc View 2 chunks +7 lines, -0 lines 0 comments Download
A extensions/browser/test_runtime_api_delegate.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A extensions/browser/test_runtime_api_delegate.cc View 1 2 3 4 5 6 1 chunk +53 lines, -0 lines 0 comments Download
M extensions/common/api/_api_features.json View 1 2 3 4 2 chunks +53 lines, -0 lines 0 comments Download
M extensions/common/api/_permission_features.json View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/common/api/api.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A + extensions/common/api/runtime.json View 1 2 3 4 5 6 6 chunks +29 lines, -18 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Ken Rockot(use gerrit already)
I ended up using nocompile to pacify the runtime schema compilation. It turns out that ...
6 years, 7 months ago (2014-05-03 04:16:12 UTC) #1
Ken Rockot(use gerrit already)
https://chromiumcodereview.appspot.com/264743014/diff/20001/apps/shell/common/shell_extensions_client.cc File apps/shell/common/shell_extensions_client.cc (right): https://chromiumcodereview.appspot.com/264743014/diff/20001/apps/shell/common/shell_extensions_client.cc#newcode25 apps/shell/common/shell_extensions_client.cc:25: //#include "grit/common_resources.h" Ugh, I must have left this here. ...
6 years, 7 months ago (2014-05-03 04:22:49 UTC) #2
not at google - send to devlin
Better idea just to add nocompile, lucky things turned out that way. Guess I'll add ...
6 years, 7 months ago (2014-05-05 19:26:14 UTC) #3
Ken Rockot(use gerrit already)
Thanks. Got to rebase too, and changed these all to UIThreadExtensionFunctions using the new typesafe ...
6 years, 7 months ago (2014-05-05 21:08:07 UTC) #4
not at google - send to devlin
lgtm https://codereview.chromium.org/264743014/diff/40001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (left): https://codereview.chromium.org/264743014/diff/40001/chrome/common/extensions/api/_api_features.json#oldcode305 chrome/common/extensions/api/_api_features.json:305: "extension": { as discussed, you should be able ...
6 years, 7 months ago (2014-05-05 21:50:25 UTC) #5
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 7 months ago (2014-05-05 23:07:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/264743014/80001
6 years, 7 months ago (2014-05-05 23:08:48 UTC) #7
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 7 months ago (2014-05-05 23:22:23 UTC) #8
Ken Rockot(use gerrit already)
james could you ptal for apps/shell
6 years, 7 months ago (2014-05-06 00:45:49 UTC) #9
James Cook
apps/shell LGTM but with several nits https://codereview.chromium.org/264743014/diff/100001/apps/shell/browser/shell_runtime_api_delegate.cc File apps/shell/browser/shell_runtime_api_delegate.cc (right): https://codereview.chromium.org/264743014/diff/100001/apps/shell/browser/shell_runtime_api_delegate.cc#newcode6 apps/shell/browser/shell_runtime_api_delegate.cc:6: #include PlatformInfo since ...
6 years, 7 months ago (2014-05-06 15:57:02 UTC) #10
Ken Rockot(use gerrit already)
Heeeere we go https://codereview.chromium.org/264743014/diff/100001/apps/shell/browser/shell_runtime_api_delegate.cc File apps/shell/browser/shell_runtime_api_delegate.cc (right): https://codereview.chromium.org/264743014/diff/100001/apps/shell/browser/shell_runtime_api_delegate.cc#newcode6 apps/shell/browser/shell_runtime_api_delegate.cc:6: On 2014/05/06 15:57:03, James Cook wrote: ...
6 years, 7 months ago (2014-05-06 17:22:22 UTC) #11
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 7 months ago (2014-05-06 17:22:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/264743014/120001
6 years, 7 months ago (2014-05-06 17:23:34 UTC) #13
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 7 months ago (2014-05-06 18:06:03 UTC) #14
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 7 months ago (2014-05-06 18:52:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/264743014/140001
6 years, 7 months ago (2014-05-06 18:54:35 UTC) #16
Ken Rockot(use gerrit already)
The CQ bit was unchecked by rockot@chromium.org
6 years, 7 months ago (2014-05-06 20:50:27 UTC) #17
Ken Rockot(use gerrit already)
The CQ bit was checked by rockot@chromium.org
6 years, 7 months ago (2014-05-07 00:54:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/264743014/160001
6 years, 7 months ago (2014-05-07 00:57:07 UTC) #19
commit-bot: I haz the power
6 years, 7 months ago (2014-05-07 14:26:52 UTC) #20
Message was sent while issue was closed.
Change committed as 268749

Powered by Google App Engine
This is Rietveld 408576698