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

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

Issue 8872036: Profiles: Move NetworkActionPredictor to the ProfileKeyedService framework. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove dtor Created 9 years 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) 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/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 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 } 573 }
574 574
575 void OffTheRecordProfileImpl::ClearNetworkingHistorySince(base::Time time) { 575 void OffTheRecordProfileImpl::ClearNetworkingHistorySince(base::Time time) {
576 // No need to do anything here, our transport security state is read-only. 576 // No need to do anything here, our transport security state is read-only.
577 } 577 }
578 578
579 GURL OffTheRecordProfileImpl::GetHomePage() { 579 GURL OffTheRecordProfileImpl::GetHomePage() {
580 return profile_->GetHomePage(); 580 return profile_->GetHomePage();
581 } 581 }
582 582
583 NetworkActionPredictor* OffTheRecordProfileImpl::GetNetworkActionPredictor() {
584 return NULL;
585 }
586
587 void OffTheRecordProfileImpl::Observe(int type, 583 void OffTheRecordProfileImpl::Observe(int type,
588 const content::NotificationSource& source, 584 const content::NotificationSource& source,
589 const content::NotificationDetails& details) { 585 const content::NotificationDetails& details) {
590 if (type == content::NOTIFICATION_ZOOM_LEVEL_CHANGED) { 586 if (type == content::NOTIFICATION_ZOOM_LEVEL_CHANGED) {
591 const std::string& host = 587 const std::string& host =
592 *(content::Details<const std::string>(details).ptr()); 588 *(content::Details<const std::string>(details).ptr());
593 if (!host.empty()) { 589 if (!host.empty()) {
594 double level = profile_->GetHostZoomMap()->GetZoomLevel(host); 590 double level = profile_->GetHostZoomMap()->GetZoomLevel(host);
595 GetHostZoomMap()->SetZoomLevel(host, level); 591 GetHostZoomMap()->SetZoomLevel(host, level);
596 } 592 }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 OffTheRecordProfileImpl* profile = NULL; 661 OffTheRecordProfileImpl* profile = NULL;
666 #if defined(OS_CHROMEOS) 662 #if defined(OS_CHROMEOS)
667 if (Profile::IsGuestSession()) 663 if (Profile::IsGuestSession())
668 profile = new GuestSessionProfile(this); 664 profile = new GuestSessionProfile(this);
669 #endif 665 #endif
670 if (!profile) 666 if (!profile)
671 profile = new OffTheRecordProfileImpl(this); 667 profile = new OffTheRecordProfileImpl(this);
672 profile->Init(); 668 profile->Init();
673 return profile; 669 return profile;
674 } 670 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698