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

Side by Side Diff: chrome/browser/geolocation/access_token_store.cc

Issue 4192012: Convert implicit scoped_refptr constructor calls to explicit ones, part 1 (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: fix presubmit Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/geolocation/access_token_store.h" 5 #include "chrome/browser/geolocation/access_token_store.h"
6 6
7 #include "base/string_piece.h" 7 #include "base/string_piece.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 AccessTokenStore::~AccessTokenStore() { 87 AccessTokenStore::~AccessTokenStore() {
88 } 88 }
89 89
90 void AccessTokenStore::RegisterPrefs(PrefService* prefs) { 90 void AccessTokenStore::RegisterPrefs(PrefService* prefs) {
91 prefs->RegisterDictionaryPref(prefs::kGeolocationAccessToken); 91 prefs->RegisterDictionaryPref(prefs::kGeolocationAccessToken);
92 } 92 }
93 93
94 AccessTokenStore::Handle AccessTokenStore::LoadAccessTokens( 94 AccessTokenStore::Handle AccessTokenStore::LoadAccessTokens(
95 CancelableRequestConsumerBase* consumer, 95 CancelableRequestConsumerBase* consumer,
96 LoadAccessTokensCallbackType* callback) { 96 LoadAccessTokensCallbackType* callback) {
97 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request = 97 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request(
98 new CancelableRequest<LoadAccessTokensCallbackType>(callback); 98 new CancelableRequest<LoadAccessTokensCallbackType>(callback));
99 AddRequest(request, consumer); 99 AddRequest(request, consumer);
100 DCHECK(request->handle()); 100 DCHECK(request->handle());
101 101
102 DoLoadAccessTokens(request); 102 DoLoadAccessTokens(request);
103 return request->handle(); 103 return request->handle();
104 } 104 }
105 105
106 // Creates a new access token store backed by the global chome prefs. 106 // Creates a new access token store backed by the global chome prefs.
107 AccessTokenStore* NewChromePrefsAccessTokenStore() { 107 AccessTokenStore* NewChromePrefsAccessTokenStore() {
108 return new ChromePrefsAccessTokenStore; 108 return new ChromePrefsAccessTokenStore;
109 } 109 }
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/geolocation/access_token_store_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698