| OLD | NEW |
| 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/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 } | 446 } |
| 447 | 447 |
| 448 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { | 448 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { |
| 449 return (profile == this) || (profile == profile_); | 449 return (profile == this) || (profile == profile_); |
| 450 } | 450 } |
| 451 | 451 |
| 452 Time OffTheRecordProfileImpl::GetStartTime() const { | 452 Time OffTheRecordProfileImpl::GetStartTime() const { |
| 453 return start_time_; | 453 return start_time_; |
| 454 } | 454 } |
| 455 | 455 |
| 456 SpellCheckHost* OffTheRecordProfileImpl::GetSpellCheckHost() { | |
| 457 return profile_->GetSpellCheckHost(); | |
| 458 } | |
| 459 | |
| 460 void OffTheRecordProfileImpl::ReinitializeSpellCheckHost(bool force) { | |
| 461 profile_->ReinitializeSpellCheckHost(force); | |
| 462 } | |
| 463 | |
| 464 WebKitContext* OffTheRecordProfileImpl::GetWebKitContext() { | 456 WebKitContext* OffTheRecordProfileImpl::GetWebKitContext() { |
| 465 CreateQuotaManagerAndClients(); | 457 CreateQuotaManagerAndClients(); |
| 466 return webkit_context_.get(); | 458 return webkit_context_.get(); |
| 467 } | 459 } |
| 468 | 460 |
| 469 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { | 461 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { |
| 470 return NULL; | 462 return NULL; |
| 471 } | 463 } |
| 472 | 464 |
| 473 history::TopSites* OffTheRecordProfileImpl::GetTopSites() { | 465 history::TopSites* OffTheRecordProfileImpl::GetTopSites() { |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 OffTheRecordProfileImpl* profile = NULL; | 650 OffTheRecordProfileImpl* profile = NULL; |
| 659 #if defined(OS_CHROMEOS) | 651 #if defined(OS_CHROMEOS) |
| 660 if (Profile::IsGuestSession()) | 652 if (Profile::IsGuestSession()) |
| 661 profile = new GuestSessionProfile(this); | 653 profile = new GuestSessionProfile(this); |
| 662 #endif | 654 #endif |
| 663 if (!profile) | 655 if (!profile) |
| 664 profile = new OffTheRecordProfileImpl(this); | 656 profile = new OffTheRecordProfileImpl(this); |
| 665 profile->Init(); | 657 profile->Init(); |
| 666 return profile; | 658 return profile; |
| 667 } | 659 } |
| OLD | NEW |