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

Issue 443723003: extensions: Register 'app' and 'webstore' bindings only if they are available. (Closed)

Created:
6 years, 4 months ago by sadrul
Modified:
6 years, 4 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

extensions: Register 'app' and 'webstore' bindings only if they are available. When running from outside chrome (e.g. in athena), 'app' and 'webstore' api implementations are not available. So check to see if the API is available before registering the corresponding bindings. BUG=391478 R=kalman@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287935

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -15 lines) Patch
M chrome/common/extensions/api/_api_features.json View 1 2 3 2 chunks +7 lines, -6 lines 0 comments Download
M chrome/common/extensions/api/extension_api_unittest.cc View 1 2 3 4 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M extensions/common/permissions/permissions_data.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M extensions/renderer/dispatcher.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
sadrul
6 years, 4 months ago (2014-08-05 22:40:20 UTC) #1
not at google - send to devlin
https://codereview.chromium.org/443723003/diff/1/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/443723003/diff/1/extensions/renderer/dispatcher.cc#newcode1006 extensions/renderer/dispatcher.cc:1006: if (IsApiAvailable(std::string("app"), context)) it's easier to do if (context->GetAvailability("app").is_available()) ...
6 years, 4 months ago (2014-08-05 22:43:39 UTC) #2
sadrul
https://codereview.chromium.org/443723003/diff/1/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/443723003/diff/1/extensions/renderer/dispatcher.cc#newcode1006 extensions/renderer/dispatcher.cc:1006: if (IsApiAvailable(std::string("app"), context)) On 2014/08/05 22:43:39, kalman wrote: > ...
6 years, 4 months ago (2014-08-05 22:51:02 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/443723003/diff/20001/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/443723003/diff/20001/extensions/renderer/dispatcher.cc#newcode1009 extensions/renderer/dispatcher.cc:1009: if (context->GetAvailability("webstore").is_available()) this is a *very slight* change in ...
6 years, 4 months ago (2014-08-05 23:13:04 UTC) #4
sadrul
https://codereview.chromium.org/443723003/diff/20001/extensions/renderer/dispatcher.cc File extensions/renderer/dispatcher.cc (right): https://codereview.chromium.org/443723003/diff/20001/extensions/renderer/dispatcher.cc#newcode1009 extensions/renderer/dispatcher.cc:1009: if (context->GetAvailability("webstore").is_available()) On 2014/08/05 23:13:04, kalman wrote: > this ...
6 years, 4 months ago (2014-08-06 00:19:24 UTC) #5
not at google - send to devlin
lgtm https://codereview.chromium.org/443723003/diff/40001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/443723003/diff/40001/chrome/common/extensions/api/_api_features.json#newcode767 chrome/common/extensions/api/_api_features.json:767: // displayed on /extensions/webstore and /apps/webstore. Also mention: ...
6 years, 4 months ago (2014-08-06 00:21:22 UTC) #6
sadrul
I had to make a change in a test failing in the trybots to allow ...
6 years, 4 months ago (2014-08-06 02:00:13 UTC) #7
not at google - send to devlin
sorry about the back-and-forth :( https://codereview.chromium.org/443723003/diff/80001/chrome/common/extensions/api/extension_api_unittest.cc File chrome/common/extensions/api/extension_api_unittest.cc (right): https://codereview.chromium.org/443723003/diff/80001/chrome/common/extensions/api/extension_api_unittest.cc#newcode678 chrome/common/extensions/api/extension_api_unittest.cc:678: EXPECT_TRUE(MatchesURL(api.get(), "app", "chrome://flags")); Ah ...
6 years, 4 months ago (2014-08-06 17:26:18 UTC) #8
sadrul
https://codereview.chromium.org/443723003/diff/80001/chrome/common/extensions/api/extension_api_unittest.cc File chrome/common/extensions/api/extension_api_unittest.cc (right): https://codereview.chromium.org/443723003/diff/80001/chrome/common/extensions/api/extension_api_unittest.cc#newcode678 chrome/common/extensions/api/extension_api_unittest.cc:678: EXPECT_TRUE(MatchesURL(api.get(), "app", "chrome://flags")); On 2014/08/06 17:26:18, kalman wrote: > ...
6 years, 4 months ago (2014-08-06 18:51:51 UTC) #9
not at google - send to devlin
lgtm with basically that previous patchset which changed the test. https://codereview.chromium.org/443723003/diff/140001/extensions/common/features/simple_feature.cc File extensions/common/features/simple_feature.cc (right): https://codereview.chromium.org/443723003/diff/140001/extensions/common/features/simple_feature.cc#newcode411 ...
6 years, 4 months ago (2014-08-06 22:10:28 UTC) #10
sadrul
Went back to the previous patchset that changed the test expectation to allow 'app' from ...
6 years, 4 months ago (2014-08-06 23:09:09 UTC) #11
sadrul
6 years, 4 months ago (2014-08-07 02:32:08 UTC) #12
Message was sent while issue was closed.
Committed patchset #8 manually as 287935 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698