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

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

Issue 7134017: Make safe browsing work in a multi-profile environment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | Annotate | Revision Log
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/profile_impl.h" 5 #include "chrome/browser/profiles/profile_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 } 707 }
708 708
709 bool ProfileImpl::HasOffTheRecordProfile() { 709 bool ProfileImpl::HasOffTheRecordProfile() {
710 return off_the_record_profile_.get() != NULL; 710 return off_the_record_profile_.get() != NULL;
711 } 711 }
712 712
713 Profile* ProfileImpl::GetOriginalProfile() { 713 Profile* ProfileImpl::GetOriginalProfile() {
714 return this; 714 return this;
715 } 715 }
716 716
717 bool ProfileImpl::SafeBrowsingEnabled() {
718 return GetPrefs()->GetBoolean(prefs::kSafeBrowsingEnabled);
719 }
720
717 ChromeAppCacheService* ProfileImpl::GetAppCacheService() { 721 ChromeAppCacheService* ProfileImpl::GetAppCacheService() {
718 CreateQuotaManagerAndClients(); 722 CreateQuotaManagerAndClients();
719 return appcache_service_; 723 return appcache_service_;
720 } 724 }
721 725
722 webkit_database::DatabaseTracker* ProfileImpl::GetDatabaseTracker() { 726 webkit_database::DatabaseTracker* ProfileImpl::GetDatabaseTracker() {
723 CreateQuotaManagerAndClients(); 727 CreateQuotaManagerAndClients();
724 return db_tracker_; 728 return db_tracker_;
725 } 729 }
726 730
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1637 if (!prerender::PrerenderManager::IsPrerenderingPossible()) 1641 if (!prerender::PrerenderManager::IsPrerenderingPossible())
1638 return NULL; 1642 return NULL;
1639 if (!prerender_manager_.get()) { 1643 if (!prerender_manager_.get()) {
1640 CHECK(g_browser_process->prerender_tracker()); 1644 CHECK(g_browser_process->prerender_tracker());
1641 prerender_manager_.reset( 1645 prerender_manager_.reset(
1642 new prerender::PrerenderManager( 1646 new prerender::PrerenderManager(
1643 this, g_browser_process->prerender_tracker())); 1647 this, g_browser_process->prerender_tracker()));
1644 } 1648 }
1645 return prerender_manager_.get(); 1649 return prerender_manager_.get();
1646 } 1650 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698