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

Unified Diff: chrome/browser/geolocation/chrome_access_token_store.cc

Issue 2845113002: Remove raw base::DictionaryValue::SetWithoutPathExpansion in //chrome (Closed)
Patch Set: Address comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/apps/drive/drive_app_mapping.cc ('k') | chrome/browser/profiles/profile_info_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/chrome_access_token_store.cc
diff --git a/chrome/browser/geolocation/chrome_access_token_store.cc b/chrome/browser/geolocation/chrome_access_token_store.cc
index 633344e1b58cd63ccd9c21d4ba68dfe53c605ba4..1c33205a93116497bf210d3d46ff85fb2642ff29 100644
--- a/chrome/browser/geolocation/chrome_access_token_store.cc
+++ b/chrome/browser/geolocation/chrome_access_token_store.cc
@@ -117,8 +117,8 @@ static void SetAccessTokenOnUIThread(const GURL& server_url,
DictionaryPrefUpdate update(g_browser_process->local_state(),
prefs::kGeolocationAccessToken);
base::DictionaryValue* access_token_dictionary = update.Get();
- access_token_dictionary->SetWithoutPathExpansion(server_url.spec(),
- new base::Value(token));
+ access_token_dictionary->SetStringWithoutPathExpansion(server_url.spec(),
+ token);
}
void ChromeAccessTokenStore::SaveAccessToken(
« no previous file with comments | « chrome/browser/apps/drive/drive_app_mapping.cc ('k') | chrome/browser/profiles/profile_info_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698