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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); | 747 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); |
748 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); | 748 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); |
749 BrowserThread::PostTask( | 749 BrowserThread::PostTask( |
750 BrowserThread::IO, FROM_HERE, | 750 BrowserThread::IO, FROM_HERE, |
751 NewRunnableMethod( | 751 NewRunnableMethod( |
752 appcache_service_.get(), | 752 appcache_service_.get(), |
753 &ChromeAppCacheService::InitializeOnIOThread, | 753 &ChromeAppCacheService::InitializeOnIOThread, |
754 IsOffTheRecord() | 754 IsOffTheRecord() |
755 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), | 755 ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), |
756 &GetResourceContext(), | 756 &GetResourceContext(), |
757 make_scoped_refptr(GetExtensionSpecialStoragePolicy()), | 757 make_scoped_refptr(GetExtensionSpecialStoragePolicy()))); |
758 false)); | |
759 } | 758 } |
760 | 759 |
761 NotificationRegistrar registrar_; | 760 NotificationRegistrar registrar_; |
762 | 761 |
763 // The real underlying profile. | 762 // The real underlying profile. |
764 Profile* profile_; | 763 Profile* profile_; |
765 | 764 |
766 // Weak pointer owned by |profile_|. | 765 // Weak pointer owned by |profile_|. |
767 PrefService* prefs_; | 766 PrefService* prefs_; |
768 | 767 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 }; | 846 }; |
848 #endif | 847 #endif |
849 | 848 |
850 Profile* Profile::CreateOffTheRecordProfile() { | 849 Profile* Profile::CreateOffTheRecordProfile() { |
851 #if defined(OS_CHROMEOS) | 850 #if defined(OS_CHROMEOS) |
852 if (Profile::IsGuestSession()) | 851 if (Profile::IsGuestSession()) |
853 return new GuestSessionProfile(this); | 852 return new GuestSessionProfile(this); |
854 #endif | 853 #endif |
855 return new OffTheRecordProfileImpl(this); | 854 return new OffTheRecordProfileImpl(this); |
856 } | 855 } |
OLD | NEW |