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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB), | 736 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB), |
737 GetExtensionSpecialStoragePolicy()); | 737 GetExtensionSpecialStoragePolicy()); |
738 | 738 |
739 // Each consumer is responsible for registering its QuotaClient during | 739 // Each consumer is responsible for registering its QuotaClient during |
740 // its construction. | 740 // its construction. |
741 file_system_context_ = CreateFileSystemContext( | 741 file_system_context_ = CreateFileSystemContext( |
742 GetPath(), IsOffTheRecord(), | 742 GetPath(), IsOffTheRecord(), |
743 GetExtensionSpecialStoragePolicy(), | 743 GetExtensionSpecialStoragePolicy(), |
744 quota_manager_->proxy()); | 744 quota_manager_->proxy()); |
745 db_tracker_ = new webkit_database::DatabaseTracker( | 745 db_tracker_ = new webkit_database::DatabaseTracker( |
746 GetPath(), IsOffTheRecord(), GetExtensionSpecialStoragePolicy(), | 746 GetPath(), IsOffTheRecord(), false, GetExtensionSpecialStoragePolicy(), |
747 quota_manager_->proxy(), | 747 quota_manager_->proxy(), |
748 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); | 748 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
749 webkit_context_ = new WebKitContext( | 749 webkit_context_ = new WebKitContext( |
750 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), | 750 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), |
751 false, quota_manager_->proxy(), | 751 false, quota_manager_->proxy(), |
752 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); | 752 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); |
753 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); | 753 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); |
754 BrowserThread::PostTask( | 754 BrowserThread::PostTask( |
755 BrowserThread::IO, FROM_HERE, | 755 BrowserThread::IO, FROM_HERE, |
756 NewRunnableMethod( | 756 NewRunnableMethod( |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
852 }; | 852 }; |
853 #endif | 853 #endif |
854 | 854 |
855 Profile* Profile::CreateOffTheRecordProfile() { | 855 Profile* Profile::CreateOffTheRecordProfile() { |
856 #if defined(OS_CHROMEOS) | 856 #if defined(OS_CHROMEOS) |
857 if (Profile::IsGuestSession()) | 857 if (Profile::IsGuestSession()) |
858 return new GuestSessionProfile(this); | 858 return new GuestSessionProfile(this); |
859 #endif | 859 #endif |
860 return new OffTheRecordProfileImpl(this); | 860 return new OffTheRecordProfileImpl(this); |
861 } | 861 } |
OLD | NEW |