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

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

Issue 238863005: Domain Reliability: Remove browsing data when requested. (Closed) Base URL: http://git.chromium.org/chromium/src.git@domrel_bakedin
Patch Set: rebase Created 6 years, 8 months 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
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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 const base::Closure& completion) { 500 const base::Closure& completion) {
501 // Nothing to do here, our transport security state is read-only. 501 // Nothing to do here, our transport security state is read-only.
502 // Still, fire the callback to indicate we have finished, otherwise the 502 // Still, fire the callback to indicate we have finished, otherwise the
503 // BrowsingDataRemover will never be destroyed and the dialog will never be 503 // BrowsingDataRemover will never be destroyed and the dialog will never be
504 // closed. We must do this asynchronously in order to avoid reentrancy issues. 504 // closed. We must do this asynchronously in order to avoid reentrancy issues.
505 if (!completion.is_null()) { 505 if (!completion.is_null()) {
506 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion); 506 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion);
507 } 507 }
508 } 508 }
509 509
510 void OffTheRecordProfileImpl::ClearDomainReliabilityMonitor(
511 bool clear_contexts,
512 const base::Closure& completion) {
513 // Incognito profiles don't have Domain Reliability Monitors, so there's
514 // nothing to do here.
515 if (!completion.is_null()) {
516 BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, completion);
517 }
518 }
519
510 GURL OffTheRecordProfileImpl::GetHomePage() { 520 GURL OffTheRecordProfileImpl::GetHomePage() {
511 return profile_->GetHomePage(); 521 return profile_->GetHomePage();
512 } 522 }
513 523
514 #if defined(OS_CHROMEOS) 524 #if defined(OS_CHROMEOS)
515 // Special case of the OffTheRecordProfileImpl which is used while Guest 525 // Special case of the OffTheRecordProfileImpl which is used while Guest
516 // session in CrOS. 526 // session in CrOS.
517 class GuestSessionProfile : public OffTheRecordProfileImpl { 527 class GuestSessionProfile : public OffTheRecordProfileImpl {
518 public: 528 public:
519 explicit GuestSessionProfile(Profile* real_profile) 529 explicit GuestSessionProfile(Profile* real_profile)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() { 578 PrefProxyConfigTracker* OffTheRecordProfileImpl::CreateProxyConfigTracker() {
569 #if defined(OS_CHROMEOS) 579 #if defined(OS_CHROMEOS)
570 if (chromeos::ProfileHelper::IsSigninProfile(this)) { 580 if (chromeos::ProfileHelper::IsSigninProfile(this)) {
571 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( 581 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState(
572 g_browser_process->local_state()); 582 g_browser_process->local_state());
573 } 583 }
574 #endif // defined(OS_CHROMEOS) 584 #endif // defined(OS_CHROMEOS)
575 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( 585 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile(
576 GetPrefs(), g_browser_process->local_state()); 586 GetPrefs(), g_browser_process->local_state());
577 } 587 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698