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

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

Issue 375413002: Replace chromeos::UserManager::Get() with chromeos::GetUserManager(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 6 years, 5 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
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 "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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698