| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "chrome/browser/profiles/profile.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 | 587 |
| 588 virtual ProfileSyncService* GetProfileSyncService() { | 588 virtual ProfileSyncService* GetProfileSyncService() { |
| 589 return NULL; | 589 return NULL; |
| 590 } | 590 } |
| 591 | 591 |
| 592 virtual ProfileSyncService* GetProfileSyncService( | 592 virtual ProfileSyncService* GetProfileSyncService( |
| 593 const std::string& cros_user) { | 593 const std::string& cros_user) { |
| 594 return NULL; | 594 return NULL; |
| 595 } | 595 } |
| 596 | 596 |
| 597 virtual BrowserSignin* GetBrowserSignin() { | |
| 598 return profile_->GetBrowserSignin(); | |
| 599 } | |
| 600 | |
| 601 virtual bool IsSameProfile(Profile* profile) { | 597 virtual bool IsSameProfile(Profile* profile) { |
| 602 return (profile == this) || (profile == profile_); | 598 return (profile == this) || (profile == profile_); |
| 603 } | 599 } |
| 604 | 600 |
| 605 virtual Time GetStartTime() const { | 601 virtual Time GetStartTime() const { |
| 606 return start_time_; | 602 return start_time_; |
| 607 } | 603 } |
| 608 | 604 |
| 609 virtual SpellCheckHost* GetSpellCheckHost() { | 605 virtual SpellCheckHost* GetSpellCheckHost() { |
| 610 return profile_->GetSpellCheckHost(); | 606 return profile_->GetSpellCheckHost(); |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 }; | 866 }; |
| 871 #endif | 867 #endif |
| 872 | 868 |
| 873 Profile* Profile::CreateOffTheRecordProfile() { | 869 Profile* Profile::CreateOffTheRecordProfile() { |
| 874 #if defined(OS_CHROMEOS) | 870 #if defined(OS_CHROMEOS) |
| 875 if (Profile::IsGuestSession()) | 871 if (Profile::IsGuestSession()) |
| 876 return new GuestSessionProfile(this); | 872 return new GuestSessionProfile(this); |
| 877 #endif | 873 #endif |
| 878 return new OffTheRecordProfileImpl(this); | 874 return new OffTheRecordProfileImpl(this); |
| 879 } | 875 } |
| OLD | NEW |