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

Side by Side Diff: chrome/browser/chromeos/login/user_manager.cc

Issue 7619006: base: Remove using declaration of FundamentalValue as it's no longer necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « base/values.h ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chromeos/login/user_manager.h" 5 #include "chrome/browser/chromeos/login/user_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 base::LazyInstance<UserManager> g_user_manager(base::LINKER_INITIALIZED); 56 base::LazyInstance<UserManager> g_user_manager(base::LINKER_INITIALIZED);
57 57
58 // Stores path to the image in local state. Runs on UI thread. 58 // Stores path to the image in local state. Runs on UI thread.
59 void SaveOAuthTokenStatusToLocalState(const std::string& username, 59 void SaveOAuthTokenStatusToLocalState(const std::string& username,
60 UserManager::OAuthTokenStatus oauth_token_status) { 60 UserManager::OAuthTokenStatus oauth_token_status) {
61 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 61 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
62 PrefService* local_state = g_browser_process->local_state(); 62 PrefService* local_state = g_browser_process->local_state();
63 DictionaryPrefUpdate oauth_status_update(local_state, kUserOAuthTokenStatus); 63 DictionaryPrefUpdate oauth_status_update(local_state, kUserOAuthTokenStatus);
64 oauth_status_update->SetWithoutPathExpansion(username, 64 oauth_status_update->SetWithoutPathExpansion(username,
65 new FundamentalValue(static_cast<int>(oauth_token_status))); 65 new base::FundamentalValue(static_cast<int>(oauth_token_status)));
66 DVLOG(1) << "Saving user OAuth token status in Local State."; 66 DVLOG(1) << "Saving user OAuth token status in Local State.";
67 local_state->SavePersistentPrefs(); 67 local_state->SavePersistentPrefs();
68 } 68 }
69 69
70 // Stores path to the image in local state. Runs on UI thread. 70 // Stores path to the image in local state. Runs on UI thread.
71 void SavePathToLocalState(const std::string& username, 71 void SavePathToLocalState(const std::string& username,
72 const std::string& image_path) { 72 const std::string& image_path) {
73 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 73 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
74 PrefService* local_state = g_browser_process->local_state(); 74 PrefService* local_state = g_browser_process->local_state();
75 DictionaryPrefUpdate images_update(local_state, kUserImages); 75 DictionaryPrefUpdate images_update(local_state, kUserImages);
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 722 }
723 723
724 void UserManager::NotifyLocalStateChanged() { 724 void UserManager::NotifyLocalStateChanged() {
725 FOR_EACH_OBSERVER( 725 FOR_EACH_OBSERVER(
726 Observer, 726 Observer,
727 observer_list_, 727 observer_list_,
728 LocalStateChanged(this)); 728 LocalStateChanged(this));
729 } 729 }
730 730
731 } // namespace chromeos 731 } // namespace chromeos
OLDNEW
« no previous file with comments | « base/values.h ('k') | chrome/browser/debugger/devtools_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698