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

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: Test beautification. 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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698