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

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

Issue 7234014: Move code to clear web databases on shutdown to the database tracker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB), 735 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::DB),
736 GetExtensionSpecialStoragePolicy()); 736 GetExtensionSpecialStoragePolicy());
737 737
738 // Each consumer is responsible for registering its QuotaClient during 738 // Each consumer is responsible for registering its QuotaClient during
739 // its construction. 739 // its construction.
740 file_system_context_ = CreateFileSystemContext( 740 file_system_context_ = CreateFileSystemContext(
741 GetPath(), IsOffTheRecord(), 741 GetPath(), IsOffTheRecord(),
742 GetExtensionSpecialStoragePolicy(), 742 GetExtensionSpecialStoragePolicy(),
743 quota_manager_->proxy()); 743 quota_manager_->proxy());
744 db_tracker_ = new webkit_database::DatabaseTracker( 744 db_tracker_ = new webkit_database::DatabaseTracker(
745 GetPath(), IsOffTheRecord(), GetExtensionSpecialStoragePolicy(), 745 GetPath(), IsOffTheRecord(), false, GetExtensionSpecialStoragePolicy(),
746 quota_manager_->proxy(), 746 quota_manager_->proxy(),
747 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); 747 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE));
748 webkit_context_ = new WebKitContext( 748 webkit_context_ = new WebKitContext(
749 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), 749 IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(),
750 false, quota_manager_->proxy(), 750 false, quota_manager_->proxy(),
751 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); 751 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT));
752 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); 752 appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy());
753 BrowserThread::PostTask( 753 BrowserThread::PostTask(
754 BrowserThread::IO, FROM_HERE, 754 BrowserThread::IO, FROM_HERE,
755 NewRunnableMethod( 755 NewRunnableMethod(
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 }; 851 };
852 #endif 852 #endif
853 853
854 Profile* Profile::CreateOffTheRecordProfile() { 854 Profile* Profile::CreateOffTheRecordProfile() {
855 #if defined(OS_CHROMEOS) 855 #if defined(OS_CHROMEOS)
856 if (Profile::IsGuestSession()) 856 if (Profile::IsGuestSession())
857 return new GuestSessionProfile(this); 857 return new GuestSessionProfile(this);
858 #endif 858 #endif
859 return new OffTheRecordProfileImpl(this); 859 return new OffTheRecordProfileImpl(this);
860 } 860 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698