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

Side by Side Diff: chrome/browser/extensions/api/push_messaging/obfuscated_gaia_id_fetcher.cc

Issue 10928017: Moving google_apis and GaiaClient to src/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/api/push_messaging/obfuscated_gaia_id_fetche r.h" 5 #include "chrome/browser/extensions/api/push_messaging/obfuscated_gaia_id_fetche r.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/json/json_reader.h" 9 #include "base/json/json_reader.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/common/net/gaia/google_service_auth_error.h" 11 #include "google_apis/gaia/google_service_auth_error.h"
12 #include "net/url_request/url_fetcher.h" 12 #include "net/url_request/url_fetcher.h"
13 #include "net/url_request/url_request_status.h" 13 #include "net/url_request/url_request_status.h"
14 14
15 using net::URLFetcher; 15 using net::URLFetcher;
16 using net::URLRequestContextGetter; 16 using net::URLRequestContextGetter;
17 using net::URLRequestStatus; 17 using net::URLRequestStatus;
18 18
19 namespace { 19 namespace {
20 20
21 // URL of the service to get obfuscated Gaia ID (here misnamed channel ID). 21 // URL of the service to get obfuscated Gaia ID (here misnamed channel ID).
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 return false; 122 return false;
123 123
124 DictionaryValue* dict = NULL; 124 DictionaryValue* dict = NULL;
125 if (!value->GetAsDictionary(&dict)) 125 if (!value->GetAsDictionary(&dict))
126 return false; 126 return false;
127 127
128 return dict->GetString("id", result); 128 return dict->GetString("id", result);
129 } 129 }
130 130
131 } // namespace extensions 131 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698