| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |