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

Side by Side Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc

Issue 1412813003: This CL replaces user_manager::UserID with AccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@468875--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part2--user_names
Patch Set: Update after review. Created 5 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/file_manager/private_api_misc.h" 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_misc.h"
6 6
7 #include <set> 7 #include <set>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 return true; 146 return true;
147 } 147 }
148 148
149 } // namespace 149 } // namespace
150 150
151 bool FileManagerPrivateLogoutUserForReauthenticationFunction::RunSync() { 151 bool FileManagerPrivateLogoutUserForReauthenticationFunction::RunSync() {
152 const user_manager::User* user = 152 const user_manager::User* user =
153 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile()); 153 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile());
154 if (user) { 154 if (user) {
155 user_manager::UserManager::Get()->SaveUserOAuthStatus( 155 user_manager::UserManager::Get()->SaveUserOAuthStatus(
156 user->email(), user_manager::User::OAUTH2_TOKEN_STATUS_INVALID); 156 user->GetAccountId(), user_manager::User::OAUTH2_TOKEN_STATUS_INVALID);
157 } 157 }
158 158
159 chrome::AttemptUserExit(); 159 chrome::AttemptUserExit();
160 return true; 160 return true;
161 } 161 }
162 162
163 bool FileManagerPrivateGetPreferencesFunction::RunSync() { 163 bool FileManagerPrivateGetPreferencesFunction::RunSync() {
164 api::file_manager_private::Preferences result; 164 api::file_manager_private::Preferences result;
165 const PrefService* const service = GetProfile()->GetPrefs(); 165 const PrefService* const service = GetProfile()->GetPrefs();
166 166
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 base::File::Error result) { 683 base::File::Error result) {
684 if (result != base::File::FILE_OK) { 684 if (result != base::File::FILE_OK) {
685 Respond(Error("Failed to execute the action.")); 685 Respond(Error("Failed to execute the action."));
686 return; 686 return;
687 } 687 }
688 688
689 Respond(NoArguments()); 689 Respond(NoArguments());
690 } 690 }
691 691
692 } // namespace extensions 692 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698