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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); | 754 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); |
755 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); | 755 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); |
756 BrowserThread::PostTask( | 756 BrowserThread::PostTask( |
757 BrowserThread::IO, FROM_HERE, | 757 BrowserThread::IO, FROM_HERE, |
758 NewRunnableMethod( | 758 NewRunnableMethod( |
759 appcache_service_.get(), | 759 appcache_service_.get(), |
760 &ChromeAppCacheService::InitializeOnIOThread, | 760 &ChromeAppCacheService::InitializeOnIOThread, |
761 IsOffTheRecord() | 761 IsOffTheRecord() |
762 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), | 762 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), |
763 &GetResourceContext(), | 763 &GetResourceContext(), |
764 make_scoped_refptr(GetExtensionSpecialStoragePolicy()), | 764 make_scoped_refptr(GetExtensionSpecialStoragePolicy()))); |
765 false)); | |
766 } | 765 } |
767 | 766 |
768 NotificationRegistrar registrar_; | 767 NotificationRegistrar registrar_; |
769 | 768 |
770 // The real underlying profile. | 769 // The real underlying profile. |
771 Profile* profile_; | 770 Profile* profile_; |
772 | 771 |
773 // Weak pointer owned by |profile_|. | 772 // Weak pointer owned by |profile_|. |
774 PrefService* prefs_; | 773 PrefService* prefs_; |
775 | 774 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 }; | 853 }; |
855 #endif | 854 #endif |
856 | 855 |
857 Profile* Profile::CreateOffTheRecordProfile() { | 856 Profile* Profile::CreateOffTheRecordProfile() { |
858 #if defined(OS_CHROMEOS) | 857 #if defined(OS_CHROMEOS) |
859 if (Profile::IsGuestSession()) | 858 if (Profile::IsGuestSession()) |
860 return new GuestSessionProfile(this); | 859 return new GuestSessionProfile(this); |
861 #endif | 860 #endif |
862 return new OffTheRecordProfileImpl(this); | 861 return new OffTheRecordProfileImpl(this); |
863 } | 862 } |
OLD | NEW |