| 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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(), false, 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 GetResourceContext(), |
| 751 false, quota_manager_->proxy(), | 752 false, quota_manager_->proxy(), |
| 752 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); | 753 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); |
| 753 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); | 754 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); |
| 754 BrowserThread::PostTask( | 755 BrowserThread::PostTask( |
| 755 BrowserThread::IO, FROM_HERE, | 756 BrowserThread::IO, FROM_HERE, |
| 756 NewRunnableMethod( | 757 NewRunnableMethod( |
| 757 appcache_service_.get(), | 758 appcache_service_.get(), |
| 758 &ChromeAppCacheService::InitializeOnIOThread, | 759 &ChromeAppCacheService::InitializeOnIOThread, |
| 759 IsOffTheRecord() | 760 IsOffTheRecord() |
| 760 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), | 761 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 }; | 852 }; |
| 852 #endif | 853 #endif |
| 853 | 854 |
| 854 Profile* Profile::CreateOffTheRecordProfile() { | 855 Profile* Profile::CreateOffTheRecordProfile() { |
| 855 #if defined(OS_CHROMEOS) | 856 #if defined(OS_CHROMEOS) |
| 856 if (Profile::IsGuestSession()) | 857 if (Profile::IsGuestSession()) |
| 857 return new GuestSessionProfile(this); | 858 return new GuestSessionProfile(this); |
| 858 #endif | 859 #endif |
| 859 return new OffTheRecordProfileImpl(this); | 860 return new OffTheRecordProfileImpl(this); |
| 860 } | 861 } |
| OLD | NEW |