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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/prefs/pref_registry_simple.h"
11 #include "base/prefs/pref_service.h"
12 #include "base/prefs/scoped_user_pref_update.h"
13 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
14 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
15 #include "base/values.h" 12 #include "base/values.h"
16 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
17 #include "chrome/common/pref_names.h" 14 #include "chrome/common/pref_names.h"
15 #include "components/prefs/pref_registry_simple.h"
16 #include "components/prefs/pref_service.h"
17 #include "components/prefs/scoped_user_pref_update.h"
18 #include "content/public/browser/browser_thread.h" 18 #include "content/public/browser/browser_thread.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 using content::AccessTokenStore; 21 using content::AccessTokenStore;
22 using content::BrowserThread; 22 using content::BrowserThread;
23 23
24 namespace { 24 namespace {
25 25
26 bool IsUnsupportedNetworkProviderUrl(const GURL& url) { 26 bool IsUnsupportedNetworkProviderUrl(const GURL& url) {
27 const std::string& spec = url.spec(); 27 const std::string& spec = url.spec();
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 server_url.spec(), new base::StringValue(token)); 124 server_url.spec(), new base::StringValue(token));
125 } 125 }
126 126
127 void ChromeAccessTokenStore::SaveAccessToken( 127 void ChromeAccessTokenStore::SaveAccessToken(
128 const GURL& server_url, 128 const GURL& server_url,
129 const base::string16& access_token) { 129 const base::string16& access_token) {
130 BrowserThread::PostTask( 130 BrowserThread::PostTask(
131 BrowserThread::UI, FROM_HERE, 131 BrowserThread::UI, FROM_HERE,
132 base::Bind(&SetAccessTokenOnUIThread, server_url, access_token)); 132 base::Bind(&SetAccessTokenOnUIThread, server_url, access_token));
133 } 133 }
OLDNEW
« no previous file with comments | « chrome/browser/font_family_cache.cc ('k') | chrome/browser/geolocation/geolocation_permission_context_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698