Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Side by Side Diff: chrome/browser/profiles/profile.cc

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Moving test helpers to webkit/appcache. Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698