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

Side by Side Diff: chrome/browser/profiles/profile.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.h" 5 #include "chrome/browser/profiles/profile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 } 309 }
310 310
311 virtual bool HasOffTheRecordProfile() { 311 virtual bool HasOffTheRecordProfile() {
312 return true; 312 return true;
313 } 313 }
314 314
315 virtual Profile* GetOriginalProfile() { 315 virtual Profile* GetOriginalProfile() {
316 return profile_; 316 return profile_;
317 } 317 }
318 318
319 virtual bool SafeBrowsingEnabled() {
320 return GetOriginalProfile()->SafeBrowsingEnabled();
321 }
322
319 virtual ChromeAppCacheService* GetAppCacheService() { 323 virtual ChromeAppCacheService* GetAppCacheService() {
320 CreateQuotaManagerAndClients(); 324 CreateQuotaManagerAndClients();
321 return appcache_service_; 325 return appcache_service_;
322 } 326 }
323 327
324 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() { 328 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() {
325 CreateQuotaManagerAndClients(); 329 CreateQuotaManagerAndClients();
326 return db_tracker_; 330 return db_tracker_;
327 } 331 }
328 332
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 }; 855 };
852 #endif 856 #endif
853 857
854 Profile* Profile::CreateOffTheRecordProfile() { 858 Profile* Profile::CreateOffTheRecordProfile() {
855 #if defined(OS_CHROMEOS) 859 #if defined(OS_CHROMEOS)
856 if (Profile::IsGuestSession()) 860 if (Profile::IsGuestSession())
857 return new GuestSessionProfile(this); 861 return new GuestSessionProfile(this);
858 #endif 862 #endif
859 return new OffTheRecordProfileImpl(this); 863 return new OffTheRecordProfileImpl(this);
860 } 864 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698