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

Issue 7171023: Adds the OAuthRequestSigner class to facilitate OAuth integration (Closed)

Created:
9 years, 6 months ago by Rick Campbell
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., mscurtescu_google.com, balfanz_google.com, tim (not reviewing), tmccoy
Visibility:
Public.

Description

Adds the OAuthRequestSigner class to facilitate OAuth integration BUG=86223 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89632

Patch Set 1 #

Patch Set 2 : Fixed indentation of switch cases and defaults. #

Total comments: 28

Patch Set 3 : Incorporating cr comments. #

Total comments: 2

Patch Set 4 : Incorporating more cr comments. #

Patch Set 5 : Added a cast to fix build on Mac. #

Patch Set 6 : Added a cast to fix build on Mac. #

Total comments: 2

Patch Set 7 : Using PRId64 formatter in preference to static_cast of the value. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+679 lines, -0 lines) Patch
M chrome/chrome_common.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/net/gaia/oauth_request_signer.h View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/common/net/gaia/oauth_request_signer.cc View 1 2 3 4 5 6 1 chunk +379 lines, -0 lines 0 comments Download
A chrome/common/net/gaia/oauth_request_signer_unittest.cc View 1 2 3 1 chunk +228 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Rick Campbell
Please take a look. This patch adds the OAuthRequestSigner class, which computes appropriate values for ...
9 years, 6 months ago (2011-06-15 20:08:26 UTC) #1
Mattias Nissler (ping if slow)
couple of style nits (non-scoring) http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc File chrome/common/net/gaia/oauth_request_signer.cc (right): http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc#newcode26 chrome/common/net/gaia/oauth_request_signer.cc:26: static const std::string OAuthConsumerKeyLabel ...
9 years, 6 months ago (2011-06-16 17:20:34 UTC) #2
Nicolas Zea
http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc File chrome/common/net/gaia/oauth_request_signer.cc (right): http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc#newcode22 chrome/common/net/gaia/oauth_request_signer.cc:22: static const int kMinNonceLength = 15; Include the static ...
9 years, 6 months ago (2011-06-16 18:59:27 UTC) #3
Rick Campbell
Please take another look. http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc File chrome/common/net/gaia/oauth_request_signer.cc (right): http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc#newcode22 chrome/common/net/gaia/oauth_request_signer.cc:22: static const int kMinNonceLength = ...
9 years, 6 months ago (2011-06-17 16:57:54 UTC) #4
Mattias Nissler (ping if slow)
More nits. regarding the actual functionality, I cannot say anything since I my OAuth knowledge ...
9 years, 6 months ago (2011-06-17 17:10:03 UTC) #5
Rick Campbell
Please take another look http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc File chrome/common/net/gaia/oauth_request_signer.cc (right): http://codereview.chromium.org/7171023/diff/2001/chrome/common/net/gaia/oauth_request_signer.cc#newcode198 chrome/common/net/gaia/oauth_request_signer.cc:198: time(&now); On 2011/06/17 17:10:04, Mattias ...
9 years, 6 months ago (2011-06-17 18:53:44 UTC) #6
Nicolas Zea
LGTM
9 years, 6 months ago (2011-06-17 19:00:23 UTC) #7
Rick Campbell
That last change with base::Time caused the Mac build to break, so I added a ...
9 years, 6 months ago (2011-06-17 22:32:10 UTC) #8
Nicolas Zea
http://codereview.chromium.org/7171023/diff/8013/chrome/common/net/gaia/oauth_request_signer.cc File chrome/common/net/gaia/oauth_request_signer.cc (right): http://codereview.chromium.org/7171023/diff/8013/chrome/common/net/gaia/oauth_request_signer.cc#newcode156 chrome/common/net/gaia/oauth_request_signer.cc:156: "%ld", See base/format_macros.h. I think you want the "PRId64" ...
9 years, 6 months ago (2011-06-17 22:38:40 UTC) #9
Rick Campbell
9 years, 6 months ago (2011-06-17 23:04:04 UTC) #10
Thanks.  PRId64 is in.  Without objection, I'll dcommit after try jobs complete.

http://codereview.chromium.org/7171023/diff/8013/chrome/common/net/gaia/oauth...
File chrome/common/net/gaia/oauth_request_signer.cc (right):

http://codereview.chromium.org/7171023/diff/8013/chrome/common/net/gaia/oauth...
chrome/common/net/gaia/oauth_request_signer.cc:156: "%ld",
On 2011/06/17 22:38:40, nzea wrote:
> See base/format_macros.h. I think you want the "PRId64" macro.

Done.

Powered by Google App Engine
This is Rietveld 408576698