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

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

Issue 303006: Delete unused themes from disk on shutdown. (Closed)
Patch Set: Created 11 years, 2 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
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/common/extensions/extension.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/profile.h" 5 #include "chrome/browser/profile.h"
6 6
7 #include "app/theme_provider.h" 7 #include "app/theme_provider.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"
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 804
805 // FaviconService depends on HistoryServce so make sure we delete 805 // FaviconService depends on HistoryServce so make sure we delete
806 // HistoryService first. 806 // HistoryService first.
807 favicon_service_ = NULL; 807 favicon_service_ = NULL;
808 808
809 extension_message_service_->ProfileDestroyed(); 809 extension_message_service_->ProfileDestroyed();
810 810
811 if (extensions_service_) 811 if (extensions_service_)
812 extensions_service_->ProfileDestroyed(); 812 extensions_service_->ProfileDestroyed();
813 813
814 // This causes the Preferences file to be written to disk.
814 MarkAsCleanShutdown(); 815 MarkAsCleanShutdown();
815 } 816 }
816 817
817 ProfileId ProfileImpl::GetRuntimeId() { 818 ProfileId ProfileImpl::GetRuntimeId() {
818 return reinterpret_cast<ProfileId>(this); 819 return reinterpret_cast<ProfileId>(this);
819 } 820 }
820 821
821 FilePath ProfileImpl::GetPath() { 822 FilePath ProfileImpl::GetPath() {
822 return path_; 823 return path_;
823 } 824 }
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 #endif 1408 #endif
1408 return NULL; 1409 return NULL;
1409 } 1410 }
1410 1411
1411 void ProfileImpl::InitSyncService() { 1412 void ProfileImpl::InitSyncService() {
1412 #if defined(BROWSER_SYNC) 1413 #if defined(BROWSER_SYNC)
1413 sync_service_.reset(new ProfileSyncService(this)); 1414 sync_service_.reset(new ProfileSyncService(this));
1414 sync_service_->Initialize(); 1415 sync_service_->Initialize();
1415 #endif 1416 #endif
1416 } 1417 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_theme_provider.cc ('k') | chrome/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698