| OLD | NEW |
| 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 "apps/app_window.h" | 7 #include "apps/app_window.h" |
| 8 #include "apps/app_window_registry.h" | 8 #include "apps/app_window_registry.h" |
| 9 #include "ash/frame/frame_util.h" | 9 #include "ash/frame/frame_util.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 return result_profiles; | 106 return result_profiles; |
| 107 } | 107 } |
| 108 } // namespace | 108 } // namespace |
| 109 | 109 |
| 110 bool FileBrowserPrivateLogoutUserForReauthenticationFunction::RunSync() { | 110 bool FileBrowserPrivateLogoutUserForReauthenticationFunction::RunSync() { |
| 111 chromeos::User* user = | 111 chromeos::User* user = |
| 112 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile()); | 112 chromeos::ProfileHelper::Get()->GetUserByProfile(GetProfile()); |
| 113 if (user) { | 113 if (user) { |
| 114 chromeos::UserManager::Get()->SaveUserOAuthStatus( | 114 chromeos::GetUserManager()->SaveUserOAuthStatus( |
| 115 user->email(), | 115 user->email(), chromeos::User::OAUTH2_TOKEN_STATUS_INVALID); |
| 116 chromeos::User::OAUTH2_TOKEN_STATUS_INVALID); | |
| 117 } | 116 } |
| 118 | 117 |
| 119 chrome::AttemptUserExit(); | 118 chrome::AttemptUserExit(); |
| 120 return true; | 119 return true; |
| 121 } | 120 } |
| 122 | 121 |
| 123 bool FileBrowserPrivateGetPreferencesFunction::RunSync() { | 122 bool FileBrowserPrivateGetPreferencesFunction::RunSync() { |
| 124 api::file_browser_private::Preferences result; | 123 api::file_browser_private::Preferences result; |
| 125 const PrefService* const service = GetProfile()->GetPrefs(); | 124 const PrefService* const service = GetProfile()->GetPrefs(); |
| 126 | 125 |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 NOTREACHED(); | 469 NOTREACHED(); |
| 471 SetError( | 470 SetError( |
| 472 base::StringPrintf("Unexpected inspection type(%d) is specified.", | 471 base::StringPrintf("Unexpected inspection type(%d) is specified.", |
| 473 static_cast<int>(params->type))); | 472 static_cast<int>(params->type))); |
| 474 return false; | 473 return false; |
| 475 } | 474 } |
| 476 return true; | 475 return true; |
| 477 } | 476 } |
| 478 | 477 |
| 479 } // namespace extensions | 478 } // namespace extensions |
| OLD | NEW |