| 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_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" | 
| 6 | 6 | 
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" | 
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" | 
| 9 #include "base/environment.h" | 9 #include "base/environment.h" | 
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" | 
| (...skipping 1420 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1431       GetPath(), IsOffTheRecord(), | 1431       GetPath(), IsOffTheRecord(), | 
| 1432       GetExtensionSpecialStoragePolicy(), | 1432       GetExtensionSpecialStoragePolicy(), | 
| 1433       quota_manager_->proxy()); | 1433       quota_manager_->proxy()); | 
| 1434   db_tracker_ = new webkit_database::DatabaseTracker( | 1434   db_tracker_ = new webkit_database::DatabaseTracker( | 
| 1435       GetPath(), IsOffTheRecord(), clear_local_state_on_exit_, | 1435       GetPath(), IsOffTheRecord(), clear_local_state_on_exit_, | 
| 1436       GetExtensionSpecialStoragePolicy(), | 1436       GetExtensionSpecialStoragePolicy(), | 
| 1437       quota_manager_->proxy(), | 1437       quota_manager_->proxy(), | 
| 1438       BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); | 1438       BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); | 
| 1439   webkit_context_ = new WebKitContext( | 1439   webkit_context_ = new WebKitContext( | 
| 1440         IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), | 1440         IsOffTheRecord(), GetPath(), GetExtensionSpecialStoragePolicy(), | 
|  | 1441         GetResourceContext(), | 
| 1441         clear_local_state_on_exit_, quota_manager_->proxy(), | 1442         clear_local_state_on_exit_, quota_manager_->proxy(), | 
| 1442         BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); | 1443         BrowserThread::GetMessageLoopProxyForThread(BrowserThread::WEBKIT)); | 
| 1443   appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); | 1444   appcache_service_ = new ChromeAppCacheService(quota_manager_->proxy()); | 
| 1444   BrowserThread::PostTask( | 1445   BrowserThread::PostTask( | 
| 1445       BrowserThread::IO, FROM_HERE, | 1446       BrowserThread::IO, FROM_HERE, | 
| 1446       NewRunnableMethod( | 1447       NewRunnableMethod( | 
| 1447           appcache_service_.get(), | 1448           appcache_service_.get(), | 
| 1448           &ChromeAppCacheService::InitializeOnIOThread, | 1449           &ChromeAppCacheService::InitializeOnIOThread, | 
| 1449           IsOffTheRecord() | 1450           IsOffTheRecord() | 
| 1450               ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), | 1451               ? FilePath() : GetPath().Append(chrome::kAppCacheDirname), | 
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1763   if (!prerender::PrerenderManager::IsPrerenderingPossible()) | 1764   if (!prerender::PrerenderManager::IsPrerenderingPossible()) | 
| 1764     return NULL; | 1765     return NULL; | 
| 1765   if (!prerender_manager_.get()) { | 1766   if (!prerender_manager_.get()) { | 
| 1766     CHECK(g_browser_process->prerender_tracker()); | 1767     CHECK(g_browser_process->prerender_tracker()); | 
| 1767     prerender_manager_.reset( | 1768     prerender_manager_.reset( | 
| 1768         new prerender::PrerenderManager( | 1769         new prerender::PrerenderManager( | 
| 1769             this, g_browser_process->prerender_tracker())); | 1770             this, g_browser_process->prerender_tracker())); | 
| 1770   } | 1771   } | 
| 1771   return prerender_manager_.get(); | 1772   return prerender_manager_.get(); | 
| 1772 } | 1773 } | 
| OLD | NEW | 
|---|