| Index: content/common/experiments/api_key.cc
|
| diff --git a/content/common/experiments/api_key.cc b/content/common/experiments/api_key.cc
|
| index 09b607f5a523005feca5332e64728b2801dfb127..2143692dcebbed61399324acfb8cb265f743d271 100644
|
| --- a/content/common/experiments/api_key.cc
|
| +++ b/content/common/experiments/api_key.cc
|
| @@ -19,7 +19,8 @@ namespace content {
|
| namespace {
|
|
|
| const char* kApiKeyFieldSeparator = "|";
|
| -}
|
| +
|
| +} // namespace
|
|
|
| ApiKey::~ApiKey() {}
|
|
|
| @@ -30,6 +31,8 @@ scoped_ptr<ApiKey> ApiKey::Parse(const std::string& key_text) {
|
|
|
| // API Key should resemble:
|
| // signature|origin|api_name|expiry_timestamp
|
| + // TODO(iclelland): Add version code to API key format to identify key algo
|
| + // https://crbug.com/570684
|
| std::vector<std::string> parts =
|
| SplitString(key_text, kApiKeyFieldSeparator, base::KEEP_WHITESPACE,
|
| base::SPLIT_WANT_ALL);
|
| @@ -76,12 +79,6 @@ bool ApiKey::IsAppropriate(const std::string& origin,
|
| return ValidateOrigin(origin) && ValidateApiName(api_name);
|
| }
|
|
|
| -bool ApiKey::IsValid(const base::Time& now) const {
|
| - // TODO(iclelland): Validate signature on key data here as well.
|
| - // https://crbug.com/543215
|
| - return ValidateDate(now);
|
| -}
|
| -
|
| bool ApiKey::ValidateOrigin(const std::string& origin) const {
|
| return GURL(origin) == origin_;
|
| }
|
|
|