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