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

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

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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/geolocation/chrome_access_token_store.h" 5 #include "chrome/browser/geolocation/chrome_access_token_store.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/prefs/pref_registry_simple.h"
9 #include "base/prefs/pref_service.h"
8 #include "base/string_piece.h" 10 #include "base/string_piece.h"
9 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 12 #include "base/values.h"
11 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/prefs/pref_registry_simple.h"
13 #include "chrome/browser/prefs/pref_service.h"
14 #include "chrome/browser/prefs/scoped_user_pref_update.h" 14 #include "chrome/browser/prefs/scoped_user_pref_update.h"
15 #include "chrome/common/pref_names.h" 15 #include "chrome/common/pref_names.h"
16 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 18
19 using content::AccessTokenStore; 19 using content::AccessTokenStore;
20 using content::BrowserThread; 20 using content::BrowserThread;
21 21
22 namespace { 22 namespace {
23 23
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 access_token_dictionary->SetWithoutPathExpansion( 122 access_token_dictionary->SetWithoutPathExpansion(
123 server_url.spec(), Value::CreateStringValue(token)); 123 server_url.spec(), Value::CreateStringValue(token));
124 } 124 }
125 125
126 void ChromeAccessTokenStore::SaveAccessToken(const GURL& server_url, 126 void ChromeAccessTokenStore::SaveAccessToken(const GURL& server_url,
127 const string16& access_token) { 127 const string16& access_token) {
128 BrowserThread::PostTask( 128 BrowserThread::PostTask(
129 BrowserThread::UI, FROM_HERE, 129 BrowserThread::UI, FROM_HERE,
130 base::Bind(&SetAccessTokenOnUIThread, server_url, access_token)); 130 base::Bind(&SetAccessTokenOnUIThread, server_url, access_token));
131 } 131 }
OLDNEW
« no previous file with comments | « chrome/browser/first_run/first_run_win.cc ('k') | chrome/browser/geolocation/chrome_geolocation_permission_context_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698