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

Issue 8662008: Implement chrome.systemPrivate.getIncognitoModeAvailability extension API function (Closed)

Created:
9 years, 1 month ago by battre
Modified:
9 years ago
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr., rustema
Visibility:
Public.

Description

Implement chrome.systemPrivate.getIncognitoModeAvailability extension API function. This is a function for the bookmark manager, which wants to show the "Open in Incognito mode" option only if the incognito mode is available. BUG=none TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113184

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments, fixed bug #

Total comments: 2

Patch Set 3 : Fixed nit #

Patch Set 4 : Moved chrome.windows.incognitoModeAvailability into chrome.systemPrivate namespace #

Patch Set 5 : Added files missing from previous upload #

Patch Set 6 : Updated ExtensionAPIPermissionTest.ComponentOnlyPermissions #

Patch Set 7 : Made destructor virtual #

Total comments: 6

Patch Set 8 : Implemented dedicated function to check whether incognito mode is available #

Patch Set 9 : Moved implementation to chrome/browser/extensions/system/ #

Patch Set 10 : merged with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -6 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_preference_api.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/browser/extensions/system/system_api.h View 1 2 3 4 5 6 7 8 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/extensions/system/system_api.cc View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/system/system_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -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/extension_api.json View 1 2 3 4 5 6 7 8 9 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set_unittest.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -6 lines 0 comments Download
A chrome/test/data/extensions/api_test/system/manifest.json View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/system/test.html View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
battre
Please review. Thanks.
9 years, 1 month ago (2011-11-23 12:46:14 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/8662008/diff/1/chrome/browser/extensions/extension_preference_api.cc File chrome/browser/extensions/extension_preference_api.cc (right): http://codereview.chromium.org/8662008/diff/1/chrome/browser/extensions/extension_preference_api.cc#newcode38 chrome/browser/extensions/extension_preference_api.cc:38: // Permission requried to access this preference. Nit: "required" ...
9 years, 1 month ago (2011-11-23 13:03:35 UTC) #2
battre
http://codereview.chromium.org/8662008/diff/1/chrome/browser/extensions/extension_preference_api.cc File chrome/browser/extensions/extension_preference_api.cc (right): http://codereview.chromium.org/8662008/diff/1/chrome/browser/extensions/extension_preference_api.cc#newcode38 chrome/browser/extensions/extension_preference_api.cc:38: // Permission requried to access this preference. On 2011/11/23 ...
9 years, 1 month ago (2011-11-23 15:43:53 UTC) #3
Bernhard Bauer
LGTM. http://codereview.chromium.org/8662008/diff/2002/chrome/browser/extensions/extension_preference_api.cc File chrome/browser/extensions/extension_preference_api.cc (right): http://codereview.chromium.org/8662008/diff/2002/chrome/browser/extensions/extension_preference_api.cc#newcode191 chrome/browser/extensions/extension_preference_api.cc:191: for (size_t i = 0; i < arraysize(kReadOnlyPrefs); ...
9 years, 1 month ago (2011-11-23 15:53:57 UTC) #4
battre
http://codereview.chromium.org/8662008/diff/2002/chrome/browser/extensions/extension_preference_api.cc File chrome/browser/extensions/extension_preference_api.cc (right): http://codereview.chromium.org/8662008/diff/2002/chrome/browser/extensions/extension_preference_api.cc#newcode191 chrome/browser/extensions/extension_preference_api.cc:191: for (size_t i = 0; i < arraysize(kReadOnlyPrefs); ++i) ...
9 years, 1 month ago (2011-11-23 15:56:05 UTC) #5
battre
+aa for OWNERS approval and question below. Aaron, I am asking you for permission to ...
9 years, 1 month ago (2011-11-23 16:00:44 UTC) #6
Aaron Boodman
On 2011/11/23 16:00:44, battre wrote: > +aa for OWNERS approval and question below. > > ...
9 years, 1 month ago (2011-11-23 23:01:07 UTC) #7
battre
On 2011/11/23 23:01:07, Aaron Boodman wrote: > On 2011/11/23 16:00:44, battre wrote: > > +aa ...
9 years, 1 month ago (2011-11-24 14:29:20 UTC) #8
Aaron Boodman
On 2011/11/24 14:29:20, battre wrote: > On 2011/11/23 23:01:07, Aaron Boodman wrote: > > On ...
9 years ago (2011-11-27 06:14:49 UTC) #9
battre
I have moved the preference into the chrome.system namespace and marked it as available to ...
9 years ago (2011-11-28 14:43:29 UTC) #10
Aaron Boodman
http://codereview.chromium.org/8662008/diff/12043/chrome/browser/extensions/extension_preference_api.cc File chrome/browser/extensions/extension_preference_api.cc (right): http://codereview.chromium.org/8662008/diff/12043/chrome/browser/extensions/extension_preference_api.cc#newcode1 chrome/browser/extensions/extension_preference_api.cc:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
9 years ago (2011-11-28 19:32:44 UTC) #11
battre
Thanks for the review. I am just posting my thoughts on your points now. I ...
9 years ago (2011-11-28 20:23:16 UTC) #12
Bernhard Bauer
http://codereview.chromium.org/8662008/diff/12043/chrome/browser/extensions/extension_preference_api.cc File chrome/browser/extensions/extension_preference_api.cc (right): http://codereview.chromium.org/8662008/diff/12043/chrome/browser/extensions/extension_preference_api.cc#newcode1 chrome/browser/extensions/extension_preference_api.cc:1: // Copyright (c) 2011 The Chromium Authors. All rights ...
9 years ago (2011-11-29 10:00:01 UTC) #13
Aaron Boodman
On Tue, Nov 29, 2011 at 2:00 AM, <bauerb@chromium.org> wrote: > > http://codereview.chromium.org/8662008/diff/12043/chrome/browser/extensions/extension_preference_api.cc > File ...
9 years ago (2011-11-29 18:46:10 UTC) #14
Aaron Boodman
On Mon, Nov 28, 2011 at 12:23 PM, <battre@chromium.org> wrote: > I will do that, ...
9 years ago (2011-11-29 18:46:47 UTC) #15
battre
I have implemented a simple chrome.systemPrivate.getIncognitoModeAvailability function as discussed and moved the code to chrome/browser/extensions/system/. ...
9 years ago (2011-12-05 17:34:21 UTC) #16
Aaron Boodman
lgtm thx
9 years ago (2011-12-05 20:17:34 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/8662008/21008
9 years ago (2011-12-06 10:06:52 UTC) #18
commit-bot: I haz the power
Can't apply patch for file chrome/browser/extensions/extension_function_dispatcher.cc. While running patch -p1 --forward --force; patching file chrome/browser/extensions/extension_function_dispatcher.cc ...
9 years ago (2011-12-06 10:06:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/battre@chromium.org/8662008/25001
9 years ago (2011-12-06 10:29:03 UTC) #20
commit-bot: I haz the power
9 years ago (2011-12-06 11:32:25 UTC) #21
Change committed as 113184

Powered by Google App Engine
This is Rietveld 408576698