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

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

Issue 6077005: Refactored app cache clear on exit code to happen in the object owning the files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more unittest change. Created 9 years, 11 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) 2010 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 "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 } 189 }
190 190
191 virtual ChromeAppCacheService* GetAppCacheService() { 191 virtual ChromeAppCacheService* GetAppCacheService() {
192 if (!appcache_service_) { 192 if (!appcache_service_) {
193 appcache_service_ = new ChromeAppCacheService; 193 appcache_service_ = new ChromeAppCacheService;
194 BrowserThread::PostTask( 194 BrowserThread::PostTask(
195 BrowserThread::IO, FROM_HERE, 195 BrowserThread::IO, FROM_HERE,
196 NewRunnableMethod(appcache_service_.get(), 196 NewRunnableMethod(appcache_service_.get(),
197 &ChromeAppCacheService::InitializeOnIOThread, 197 &ChromeAppCacheService::InitializeOnIOThread,
198 GetPath(), IsOffTheRecord(), 198 GetPath(), IsOffTheRecord(),
199 make_scoped_refptr(GetHostContentSettingsMap()))); 199 make_scoped_refptr(GetHostContentSettingsMap()),
200 false));
200 } 201 }
201 return appcache_service_; 202 return appcache_service_;
202 } 203 }
203 204
204 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() { 205 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() {
205 if (!db_tracker_) { 206 if (!db_tracker_) {
206 db_tracker_ = new webkit_database::DatabaseTracker( 207 db_tracker_ = new webkit_database::DatabaseTracker(
207 GetPath(), IsOffTheRecord()); 208 GetPath(), IsOffTheRecord());
208 } 209 }
209 return db_tracker_; 210 return db_tracker_;
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 672
672 // The file_system context for this profile. 673 // The file_system context for this profile.
673 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; 674 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_;
674 675
675 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 676 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
676 }; 677 };
677 678
678 Profile* Profile::CreateOffTheRecordProfile() { 679 Profile* Profile::CreateOffTheRecordProfile() {
679 return new OffTheRecordProfileImpl(this); 680 return new OffTheRecordProfileImpl(this);
680 } 681 }
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