| 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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { | 370 OffTheRecordProfileImpl::GetSpecialStoragePolicy() { |
| 371 return GetExtensionSpecialStoragePolicy(); | 371 return GetExtensionSpecialStoragePolicy(); |
| 372 } | 372 } |
| 373 | 373 |
| 374 content::PushMessagingService* | 374 content::PushMessagingService* |
| 375 OffTheRecordProfileImpl::GetPushMessagingService() { | 375 OffTheRecordProfileImpl::GetPushMessagingService() { |
| 376 // TODO(johnme): Support push messaging in incognito if possible. | 376 // TODO(johnme): Support push messaging in incognito if possible. |
| 377 return NULL; | 377 return NULL; |
| 378 } | 378 } |
| 379 | 379 |
| 380 gcm::GCMPermissionContext* |
| 381 OffTheRecordProfileImpl::GetPushMessagingPermissionContext() { |
| 382 return NULL; |
| 383 } |
| 384 |
| 380 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { | 385 bool OffTheRecordProfileImpl::IsSameProfile(Profile* profile) { |
| 381 return (profile == this) || (profile == profile_); | 386 return (profile == this) || (profile == profile_); |
| 382 } | 387 } |
| 383 | 388 |
| 384 Time OffTheRecordProfileImpl::GetStartTime() const { | 389 Time OffTheRecordProfileImpl::GetStartTime() const { |
| 385 return start_time_; | 390 return start_time_; |
| 386 } | 391 } |
| 387 | 392 |
| 388 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { | 393 history::TopSites* OffTheRecordProfileImpl::GetTopSitesWithoutCreating() { |
| 389 return NULL; | 394 return NULL; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { | 537 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { |
| 533 #if defined(OS_CHROMEOS) | 538 #if defined(OS_CHROMEOS) |
| 534 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 539 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 535 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 540 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 536 g_browser_process->local_state()); | 541 g_browser_process->local_state()); |
| 537 } | 542 } |
| 538 #endif // defined(OS_CHROMEOS) | 543 #endif // defined(OS_CHROMEOS) |
| 539 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 544 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 540 GetPrefs(), g_browser_process->local_state()); | 545 GetPrefs(), g_browser_process->local_state()); |
| 541 } | 546 } |
| OLD | NEW |