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

Issue 11882025: Move "oauth2" manifest key parsing out of Extension class. (Closed)

Created:
7 years, 11 months ago by SanjoyPal
Modified:
7 years, 10 months ago
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org, mhx348_motorola.com, sail+watch_chromium.org
Visibility:
Public.

Description

Move "oauth2" manifest key parsing out of Extension class. BUG=159265 TEST=browser_tests --gtest_filter=GetAuthTokenFunctionTest.* TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180069

Patch Set 1 #

Total comments: 27

Patch Set 2 : Move "oauth2" manifest key parsing out of Extension class. #

Total comments: 7

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Total comments: 1

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Patch Set 10 : #

Total comments: 6

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -156 lines) Patch
M chrome/browser/extensions/api/identity/identity_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +23 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +26 lines, -7 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +18 lines, -8 lines 0 comments Download
M chrome/browser/extensions/extension_install_prompt.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_install_prompt.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/permissions_updater.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +1 line, -1 line 0 comments Download
chrome/common/extensions/api/identity/extension_manifests_auth_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +88 lines, -0 lines 0 comments Download
chrome/common/extensions/api/identity/oauth2_manifest_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +42 lines, -0 lines 0 comments Download
chrome/common/extensions/api/identity/oauth2_manifest_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +76 lines, -0 lines 0 comments Download
chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +0 lines, -20 lines 0 comments Download
chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +1 line, -33 lines 0 comments Download
chrome/common/extensions/manifest_tests/extension_manifests_auth_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -76 lines 0 comments Download

Messages

Total messages: 47 (0 generated)
SanjoyPal
Please review.
7 years, 11 months ago (2013-01-14 19:47:30 UTC) #1
Devlin
FYI, the CL with ManifestHandler::HasNoKey() is going through now (with luck, this time we won't ...
7 years, 11 months ago (2013-01-14 20:18:34 UTC) #2
Yoyo Zhou
https://chromiumcodereview.appspot.com/11882025/diff/1/chrome/common/extensions/api/identity/oauth2_manifest_handler.h File chrome/common/extensions/api/identity/oauth2_manifest_handler.h (right): https://chromiumcodereview.appspot.com/11882025/diff/1/chrome/common/extensions/api/identity/oauth2_manifest_handler.h#newcode24 chrome/common/extensions/api/identity/oauth2_manifest_handler.h:24: static const OAuth2Info* GetOAuth2Info(const Extension* extension); On 2013/01/14 20:18:34, ...
7 years, 11 months ago (2013-01-15 01:59:56 UTC) #3
SanjoyPal
Move "oauth2" manifest key parsing out of Extension class. BUG=159265 TEST=browser_tests --gtest_filter=GetAuthTokenFunctionTest.*
7 years, 11 months ago (2013-01-16 18:58:55 UTC) #4
SanjoyPal
Reabsed and fixed the comments. Please review. https://codereview.chromium.org/11882025/diff/1/chrome/browser/extensions/api/identity/identity_api.cc File chrome/browser/extensions/api/identity/identity_api.cc (right): https://codereview.chromium.org/11882025/diff/1/chrome/browser/extensions/api/identity/identity_api.cc#newcode39 chrome/browser/extensions/api/identity/identity_api.cc:39: } On ...
7 years, 11 months ago (2013-01-16 19:10:51 UTC) #5
Devlin
https://codereview.chromium.org/11882025/diff/1/chrome/browser/extensions/api/identity/identity_apitest.cc File chrome/browser/extensions/api/identity/identity_apitest.cc (right): https://codereview.chromium.org/11882025/diff/1/chrome/browser/extensions/api/identity/identity_apitest.cc#newcode31 chrome/browser/extensions/api/identity/identity_apitest.cc:31: using extensions::Extension; On 2013/01/14 20:18:34, D Cronin wrote: > ...
7 years, 11 months ago (2013-01-16 19:36:12 UTC) #6
SanjoyPal
Updated patch. https://codereview.chromium.org/11882025/diff/1/chrome/browser/extensions/api/identity/identity_apitest.cc File chrome/browser/extensions/api/identity/identity_apitest.cc (right): https://codereview.chromium.org/11882025/diff/1/chrome/browser/extensions/api/identity/identity_apitest.cc#newcode31 chrome/browser/extensions/api/identity/identity_apitest.cc:31: using extensions::Extension; On 2013/01/16 19:36:12, D Cronin ...
7 years, 11 months ago (2013-01-16 20:11:28 UTC) #7
Devlin
https://codereview.chromium.org/11882025/diff/11001/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc File chrome/common/extensions/api/identity/oauth2_manifest_handler.cc (right): https://codereview.chromium.org/11882025/diff/11001/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc#newcode30 chrome/common/extensions/api/identity/oauth2_manifest_handler.cc:30: const OAuth2Info& OAuth2Info::GetOAuth2Info(const Extension* extension) { Yes and no. ...
7 years, 11 months ago (2013-01-16 20:26:39 UTC) #8
Yoyo Zhou
https://codereview.chromium.org/11882025/diff/11001/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc File chrome/common/extensions/api/identity/oauth2_manifest_handler.cc (right): https://codereview.chromium.org/11882025/diff/11001/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc#newcode30 chrome/common/extensions/api/identity/oauth2_manifest_handler.cc:30: const OAuth2Info& OAuth2Info::GetOAuth2Info(const Extension* extension) { On 2013/01/16 20:26:39, ...
7 years, 11 months ago (2013-01-16 21:06:12 UTC) #9
SanjoyPal
Done. https://codereview.chromium.org/11882025/diff/11001/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc File chrome/common/extensions/api/identity/oauth2_manifest_handler.cc (right): https://codereview.chromium.org/11882025/diff/11001/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc#newcode30 chrome/common/extensions/api/identity/oauth2_manifest_handler.cc:30: const OAuth2Info& OAuth2Info::GetOAuth2Info(const Extension* extension) { On 2013/01/16 ...
7 years, 11 months ago (2013-01-16 23:03:13 UTC) #10
Devlin
https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc File chrome/browser/extensions/api/identity/identity_apitest.cc (left): https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc#oldcode38 chrome/browser/extensions/api/identity/identity_apitest.cc:38: namespace { Why remove this? https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc File chrome/browser/extensions/api/identity/identity_apitest.cc (right): ...
7 years, 11 months ago (2013-01-16 23:25:40 UTC) #11
SanjoyPal
Updated. https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc File chrome/browser/extensions/api/identity/identity_apitest.cc (left): https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc#oldcode38 chrome/browser/extensions/api/identity/identity_apitest.cc:38: namespace { On 2013/01/16 23:25:40, D Cronin wrote: ...
7 years, 11 months ago (2013-01-17 00:11:13 UTC) #12
Devlin
https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc File chrome/browser/extensions/api/identity/identity_apitest.cc (left): https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc#oldcode38 chrome/browser/extensions/api/identity/identity_apitest.cc:38: namespace { On 2013/01/17 00:11:13, SanjoyPal wrote: > On ...
7 years, 11 months ago (2013-01-17 10:04:59 UTC) #13
SanjoyPal
Fixed as per the comments. PTAL. Thanks. https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc File chrome/browser/extensions/api/identity/identity_apitest.cc (left): https://codereview.chromium.org/11882025/diff/25001/chrome/browser/extensions/api/identity/identity_apitest.cc#oldcode38 chrome/browser/extensions/api/identity/identity_apitest.cc:38: namespace { ...
7 years, 11 months ago (2013-01-17 19:13:43 UTC) #14
Devlin
lgtm with nit. https://codereview.chromium.org/11882025/diff/14003/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/11882025/diff/14003/chrome/browser/extensions/permissions_updater.cc#newcode54 chrome/browser/extensions/permissions_updater.cc:54: extensions::OAuth2Info::GetOAuth2Info(extension).client_id, nit: don't need to have ...
7 years, 11 months ago (2013-01-17 22:53:05 UTC) #15
SanjoyPal
updated. https://codereview.chromium.org/11882025/diff/14003/chrome/browser/extensions/permissions_updater.cc File chrome/browser/extensions/permissions_updater.cc (right): https://codereview.chromium.org/11882025/diff/14003/chrome/browser/extensions/permissions_updater.cc#newcode54 chrome/browser/extensions/permissions_updater.cc:54: extensions::OAuth2Info::GetOAuth2Info(extension).client_id, On 2013/01/17 22:53:05, D Cronin wrote: > ...
7 years, 11 months ago (2013-01-18 02:08:49 UTC) #16
SanjoyPal
+miranda for profiles
7 years, 11 months ago (2013-01-18 02:24:53 UTC) #17
Miranda Callahan
On 2013/01/18 02:24:53, SanjoyPal wrote: > +miranda for profiles profiles LGTM -- assuming that patch ...
7 years, 11 months ago (2013-01-18 13:56:36 UTC) #18
sail
https://codereview.chromium.org/11882025/diff/31001/chrome/browser/extensions/api/identity/identity_api.h File chrome/browser/extensions/api/identity/identity_api.h (right): https://codereview.chromium.org/11882025/diff/31001/chrome/browser/extensions/api/identity/identity_api.h#newcode1 chrome/browser/extensions/api/identity/identity_api.h:1: // Copyright (c) 2013 The Chromium Authors. All rights ...
7 years, 11 months ago (2013-01-18 16:17:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/38002
7 years, 11 months ago (2013-01-18 19:51:55 UTC) #20
commit-bot: I haz the power
Failed to apply patch for chrome/browser/profiles/profile_dependency_manager.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-18 19:52:00 UTC) #21
sail
On 2013/01/18 19:51:55, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 11 months ago (2013-01-18 20:07:44 UTC) #22
Devlin
On 2013/01/18 16:17:00, sail wrote: > https://codereview.chromium.org/11882025/diff/31001/chrome/browser/extensions/api/identity/identity_api.h > File chrome/browser/extensions/api/identity/identity_api.h (right): > > https://codereview.chromium.org/11882025/diff/31001/chrome/browser/extensions/api/identity/identity_api.h#newcode1 > ...
7 years, 11 months ago (2013-01-18 20:48:22 UTC) #23
Yoyo Zhou
I have a few nits. https://chromiumcodereview.appspot.com/11882025/diff/38002/chrome/browser/extensions/extension_install_prompt.h File chrome/browser/extensions/extension_install_prompt.h (right): https://chromiumcodereview.appspot.com/11882025/diff/38002/chrome/browser/extensions/extension_install_prompt.h#newcode43 chrome/browser/extensions/extension_install_prompt.h:43: class MockGetAuthTokenFunction; Alphabetical order ...
7 years, 11 months ago (2013-01-23 17:50:24 UTC) #24
SanjoyPal
Fixed the review comments. Please have a look.
7 years, 11 months ago (2013-01-23 20:11:29 UTC) #25
Yoyo Zhou
LGTM
7 years, 11 months ago (2013-01-23 20:15:13 UTC) #26
SanjoyPal
On 2013/01/23 20:11:29, SanjoyPal wrote: > Fixed the review comments. Please have a look. sail, ...
7 years, 11 months ago (2013-01-23 20:19:37 UTC) #27
sail
https://codereview.chromium.org/11882025/diff/56001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://codereview.chromium.org/11882025/diff/56001/chrome/common/extensions/extension.cc#newcode1 chrome/common/extensions/extension.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
7 years, 11 months ago (2013-01-23 20:23:15 UTC) #28
SanjoyPal
Rebased the patch. Please review one more time. Thanks https://codereview.chromium.org/11882025/diff/56001/chrome/common/extensions/extension.cc File chrome/common/extensions/extension.cc (right): https://codereview.chromium.org/11882025/diff/56001/chrome/common/extensions/extension.cc#newcode1 chrome/common/extensions/extension.cc:1: ...
7 years, 11 months ago (2013-01-23 20:35:41 UTC) #29
sail
LGTM https://codereview.chromium.org/11882025/diff/48007/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc File chrome/common/extensions/api/identity/oauth2_manifest_handler.cc (right): https://codereview.chromium.org/11882025/diff/48007/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc#newcode47 chrome/common/extensions/api/identity/oauth2_manifest_handler.cc:47: Extension* extension, string16* error) { one line per ...
7 years, 11 months ago (2013-01-24 16:22:54 UTC) #30
SanjoyPal
Updated. https://codereview.chromium.org/11882025/diff/48007/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc File chrome/common/extensions/api/identity/oauth2_manifest_handler.cc (right): https://codereview.chromium.org/11882025/diff/48007/chrome/common/extensions/api/identity/oauth2_manifest_handler.cc#newcode47 chrome/common/extensions/api/identity/oauth2_manifest_handler.cc:47: Extension* extension, string16* error) { On 2013/01/24 16:22:54, ...
7 years, 11 months ago (2013-01-25 00:37:52 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/50026
7 years, 11 months ago (2013-01-25 00:40:41 UTC) #32
SanjoyPal
Hi yoyo, Fixed the unit_tests. Can you please review the changes one more time. Thanks
7 years, 11 months ago (2013-01-25 19:06:48 UTC) #33
Yoyo Zhou
LGTM
7 years, 11 months ago (2013-01-25 19:17:43 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/60004
7 years, 11 months ago (2013-01-25 19:25:12 UTC) #35
commit-bot: I haz the power
Failed to apply patch for chrome/common/extensions/api/identity/extension_manifests_auth_unittest.cc: While running patch -p0 --forward --force --no-backup-if-mismatch; A chrome/common/extensions/api/identity ...
7 years, 11 months ago (2013-01-25 19:25:22 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/74001
7 years, 11 months ago (2013-01-26 00:07:31 UTC) #37
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-26 00:59:31 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/74001
7 years, 11 months ago (2013-01-27 06:51:29 UTC) #39
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 11 months ago (2013-01-27 07:09:48 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/74001
7 years, 10 months ago (2013-01-29 23:09:19 UTC) #41
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-01-30 00:13:30 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/85001
7 years, 10 months ago (2013-01-31 21:01:25 UTC) #43
commit-bot: I haz the power
Presubmit check for 11882025-85001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 10 months ago (2013-01-31 21:01:33 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/85001
7 years, 10 months ago (2013-01-31 21:49:15 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/11882025/94003
7 years, 10 months ago (2013-01-31 22:25:25 UTC) #46
commit-bot: I haz the power
7 years, 10 months ago (2013-02-01 04:43:01 UTC) #47
Message was sent while issue was closed.
Change committed as 180069

Powered by Google App Engine
This is Rietveld 408576698