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

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 9355059: Renaming virtual setters/getters in UserManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: year Created 8 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/profiles/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 case APP_LOCALE_CHANGED_VIA_UNKNOWN: 1347 case APP_LOCALE_CHANGED_VIA_UNKNOWN:
1348 default: { 1348 default: {
1349 NOTREACHED(); 1349 NOTREACHED();
1350 break; 1350 break;
1351 } 1351 }
1352 } 1352 }
1353 if (do_update_pref) 1353 if (do_update_pref)
1354 GetPrefs()->SetString(prefs::kApplicationLocale, new_locale); 1354 GetPrefs()->SetString(prefs::kApplicationLocale, new_locale);
1355 local_state->SetString(prefs::kApplicationLocale, new_locale); 1355 local_state->SetString(prefs::kApplicationLocale, new_locale);
1356 1356
1357 if (chromeos::UserManager::Get()->current_user_is_owner()) 1357 if (chromeos::UserManager::Get()->IsCurrentUserOwner())
1358 local_state->SetString(prefs::kOwnerLocale, new_locale); 1358 local_state->SetString(prefs::kOwnerLocale, new_locale);
1359 } 1359 }
1360 1360
1361 void ProfileImpl::OnLogin() { 1361 void ProfileImpl::OnLogin() {
1362 if (locale_change_guard_ == NULL) 1362 if (locale_change_guard_ == NULL)
1363 locale_change_guard_.reset(new chromeos::LocaleChangeGuard(this)); 1363 locale_change_guard_.reset(new chromeos::LocaleChangeGuard(this));
1364 locale_change_guard_->OnLogin(); 1364 locale_change_guard_->OnLogin();
1365 } 1365 }
1366 1366
1367 void ProfileImpl::SetupChromeOSEnterpriseExtensionObserver() { 1367 void ProfileImpl::SetupChromeOSEnterpriseExtensionObserver() {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 FilePath* cache_path, 1461 FilePath* cache_path,
1462 int* max_size) { 1462 int* max_size) {
1463 DCHECK(cache_path); 1463 DCHECK(cache_path);
1464 DCHECK(max_size); 1464 DCHECK(max_size);
1465 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir)); 1465 FilePath path(prefs_->GetFilePath(prefs::kDiskCacheDir));
1466 if (!path.empty()) 1466 if (!path.empty())
1467 *cache_path = path; 1467 *cache_path = path;
1468 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1468 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1469 prefs_->GetInteger(prefs::kDiskCacheSize); 1469 prefs_->GetInteger(prefs::kDiskCacheSize);
1470 } 1470 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | chrome/browser/ui/login/login_prompt_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698