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

Issue 10933138: Add a preliminary Python API for retrieving Google API keys. (Closed)

Created:
8 years, 3 months ago by Jói
Modified:
8 years, 3 months ago
Reviewers:
Jamie
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Add a preliminary Python API for retrieving Google API keys. This has nearly identical semantics to the C++ API for builds where the internal key file is available. For builds where that file is not available, it does not yet have the same semantics, since at the moment it does not have access to the gyp variables that would be required (this is a TODO item). Instead, it will simply try to find keys from environment variables, and if they are not found it will use 'dummytoken' as the default token for each key. BUG=145584 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=157247

Patch Set 1 #

Total comments: 19

Patch Set 2 : Restrict to just API file, address review comments. #

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : Respond to review comments. #

Patch Set 5 : Add DUMMY_TOKEN #

Patch Set 6 : . #

Patch Set 7 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -0 lines) Patch
A google_apis/google_api_keys.py View 1 2 3 4 5 6 1 chunk +92 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jamie
As requested on chat, I've only reviewed the library for now. http://codereview.chromium.org/10933138/diff/1/google_apis/google_api_keys.py File google_apis/google_api_keys.py (right): ...
8 years, 3 months ago (2012-09-17 22:28:55 UTC) #1
Jói
PTAL https://codereview.chromium.org/10933138/diff/1/google_apis/google_api_keys.py File google_apis/google_api_keys.py (right): https://codereview.chromium.org/10933138/diff/1/google_apis/google_api_keys.py#newcode39 google_apis/google_api_keys.py:39: line = line.strip() On 2012/09/17 22:28:55, Jamie wrote: ...
8 years, 3 months ago (2012-09-17 22:46:38 UTC) #2
Jamie
https://codereview.chromium.org/10933138/diff/1/google_apis/google_api_keys.py File google_apis/google_api_keys.py (right): https://codereview.chromium.org/10933138/diff/1/google_apis/google_api_keys.py#newcode39 google_apis/google_api_keys.py:39: line = line.strip() On 2012/09/17 22:46:38, Jói wrote: > ...
8 years, 3 months ago (2012-09-17 22:58:04 UTC) #3
Jamie
https://codereview.chromium.org/10933138/diff/5002/google_apis/google_api_keys.py File google_apis/google_api_keys.py (right): https://codereview.chromium.org/10933138/diff/5002/google_apis/google_api_keys.py#newcode66 google_apis/google_api_keys.py:66: return 'dummytoken' Could this string be exposed via a ...
8 years, 3 months ago (2012-09-17 23:06:41 UTC) #4
Jói
PTAL https://codereview.chromium.org/10933138/diff/1/google_apis/google_api_keys.py File google_apis/google_api_keys.py (right): https://codereview.chromium.org/10933138/diff/1/google_apis/google_api_keys.py#newcode39 google_apis/google_api_keys.py:39: line = line.strip() On 2012/09/17 22:58:05, Jamie wrote: ...
8 years, 3 months ago (2012-09-17 23:12:46 UTC) #5
Jói
PTAL https://codereview.chromium.org/10933138/diff/5002/google_apis/google_api_keys.py File google_apis/google_api_keys.py (right): https://codereview.chromium.org/10933138/diff/5002/google_apis/google_api_keys.py#newcode27 google_apis/google_api_keys.py:27: line_regexp = '^#define\s*%s\s*"([^"]+)"\s*$' % token_name On 2012/09/17 22:58:05, ...
8 years, 3 months ago (2012-09-17 23:21:51 UTC) #6
Jamie
8 years, 3 months ago (2012-09-17 23:29:56 UTC) #7
lgtm

Powered by Google App Engine
This is Rietveld 408576698