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

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

Issue 47923016: ChromeOS: Remove Profile::IsLoginProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 1 month 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/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_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/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 AppLocaleChangedVia) { 415 AppLocaleChangedVia) {
416 } 416 }
417 417
418 void OffTheRecordProfileImpl::OnLogin() { 418 void OffTheRecordProfileImpl::OnLogin() {
419 } 419 }
420 420
421 void OffTheRecordProfileImpl::InitChromeOSPreferences() { 421 void OffTheRecordProfileImpl::InitChromeOSPreferences() {
422 // The incognito profile shouldn't have Chrome OS's preferences. 422 // The incognito profile shouldn't have Chrome OS's preferences.
423 // The preferences are associated with the regular user profile. 423 // The preferences are associated with the regular user profile.
424 } 424 }
425
426 bool OffTheRecordProfileImpl::IsLoginProfile() {
427 return false;
428 }
429 #endif // defined(OS_CHROMEOS) 425 #endif // defined(OS_CHROMEOS)
430 426
431 PrefProxyConfigTracker* OffTheRecordProfileImpl::GetProxyConfigTracker() { 427 PrefProxyConfigTracker* OffTheRecordProfileImpl::GetProxyConfigTracker() {
432 if (!pref_proxy_config_tracker_) 428 if (!pref_proxy_config_tracker_)
433 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker()); 429 pref_proxy_config_tracker_.reset(CreateProxyConfigTracker());
434 return pref_proxy_config_tracker_.get(); 430 return pref_proxy_config_tracker_.get();
435 } 431 }
436 432
437 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() { 433 chrome_browser_net::Predictor* OffTheRecordProfileImpl::GetNetworkPredictor() {
438 // We do not store information about websites visited in OTR profiles which 434 // We do not store information about websites visited in OTR profiles which
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 505 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
510 #if defined(OS_CHROMEOS) 506 #if defined(OS_CHROMEOS)
511 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 507 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
512 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 508 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
513 g_browser_process->local_state()); 509 g_browser_process->local_state());
514 } 510 }
515 #endif // defined(OS_CHROMEOS) 511 #endif // defined(OS_CHROMEOS)
516 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 512 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
517 GetPrefs(), g_browser_process->local_state()); 513 GetPrefs(), g_browser_process->local_state());
518 } 514 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698