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

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

Issue 7129018: Time-based removal of temporary file systems via BrowsingDataRemover (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years, 4 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
« no previous file with comments | « chrome/browser/browsing_data_remover_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 true)); 671 true));
672 } 672 }
673 673
674 StopCreateSessionServiceTimer(); 674 StopCreateSessionServiceTimer();
675 675
676 // Remove pref observers 676 // Remove pref observers
677 pref_change_registrar_.RemoveAll(); 677 pref_change_registrar_.RemoveAll();
678 678
679 ProfileDependencyManager::GetInstance()->DestroyProfileServices(this); 679 ProfileDependencyManager::GetInstance()->DestroyProfileServices(this);
680 680
681 if (clear_local_state_on_exit_) {
682 BrowserThread::PostTask(
683 BrowserThread::FILE, FROM_HERE,
684 NewRunnableFunction(&BrowsingDataRemover::ClearGearsData, path_));
685 }
686
687 if (db_tracker_) { 681 if (db_tracker_) {
688 BrowserThread::PostTask( 682 BrowserThread::PostTask(
689 BrowserThread::FILE, FROM_HERE, 683 BrowserThread::FILE, FROM_HERE,
690 NewRunnableMethod( 684 NewRunnableMethod(
691 db_tracker_.get(), 685 db_tracker_.get(),
692 &webkit_database::DatabaseTracker::Shutdown)); 686 &webkit_database::DatabaseTracker::Shutdown));
693 } 687 }
694 688
695 // DownloadManager is lazily created, so check before accessing it. 689 // DownloadManager is lazily created, so check before accessing it.
696 if (download_manager_.get()) { 690 if (download_manager_.get()) {
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1768 new prerender::PrerenderManager( 1762 new prerender::PrerenderManager(
1769 this, g_browser_process->prerender_tracker())); 1763 this, g_browser_process->prerender_tracker()));
1770 #if defined(OS_CHROMEOS) 1764 #if defined(OS_CHROMEOS)
1771 prerender_manager_->AddCondition( 1765 prerender_manager_->AddCondition(
1772 new chromeos::PrerenderConditionNetwork( 1766 new chromeos::PrerenderConditionNetwork(
1773 chromeos::CrosLibrary::Get()->GetNetworkLibrary())); 1767 chromeos::CrosLibrary::Get()->GetNetworkLibrary()));
1774 #endif 1768 #endif
1775 } 1769 }
1776 return prerender_manager_.get(); 1770 return prerender_manager_.get();
1777 } 1771 }
OLDNEW
« no previous file with comments | « chrome/browser/browsing_data_remover_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698