| 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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 #else | 433 #else |
| 434 return NULL; | 434 return NULL; |
| 435 #endif | 435 #endif |
| 436 } | 436 } |
| 437 | 437 |
| 438 quota::SpecialStoragePolicy* | 438 quota::SpecialStoragePolicy* |
| 439 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { | 439 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { |
| 440 return GetExtensionSpecialStoragePolicy(); | 440 return GetExtensionSpecialStoragePolicy(); |
| 441 } | 441 } |
| 442 | 442 |
| 443 content::PushMessagingService* |
| 444 OffTheRecordProfileImpl::GetPushMessagingService() { |
| 445 // TODO(johnme): Support push messaging in incognito if possible. |
| 446 return NULL; |
| 447 } |
| 448 |
| 443 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { | 449 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { |
| 444 return (profile == this) || (profile == profile_); | 450 return (profile == this) || (profile == profile_); |
| 445 } | 451 } |
| 446 | 452 |
| 447 Time OffTheRecordProfileImpl::GetStartTime() const { | 453 Time OffTheRecordProfileImpl::GetStartTime() const { |
| 448 return start_time_; | 454 return start_time_; |
| 449 } | 455 } |
| 450 | 456 |
| 451 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { | 457 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { |
| 452 return NULL; | 458 return NULL; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 601 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
| 596 #if defined(OS_CHROMEOS) | 602 #if defined(OS_CHROMEOS) |
| 597 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 603 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 598 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 604 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 599 g_browser_process->local_state()); | 605 g_browser_process->local_state()); |
| 600 } | 606 } |
| 601 #endif // defined(OS_CHROMEOS) | 607 #endif // defined(OS_CHROMEOS) |
| 602 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 608 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 603 GetPrefs(), g_browser_process->local_state()); | 609 GetPrefs(), g_browser_process->local_state()); |
| 604 } | 610 } |
| OLD | NEW |