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

Side by Side Diff: chrome/browser/extensions/extension_service.cc

Issue 1151563005: Revert of NTP Zombie Code Slayer Part IV: Most Visited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « no previous file | chrome/browser/history/DEPS » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/extensions/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <set> 9 #include <set>
10 10
(...skipping 28 matching lines...) Expand all
39 #include "chrome/browser/extensions/install_verifier.h" 39 #include "chrome/browser/extensions/install_verifier.h"
40 #include "chrome/browser/extensions/installed_loader.h" 40 #include "chrome/browser/extensions/installed_loader.h"
41 #include "chrome/browser/extensions/pending_extension_manager.h" 41 #include "chrome/browser/extensions/pending_extension_manager.h"
42 #include "chrome/browser/extensions/permissions_updater.h" 42 #include "chrome/browser/extensions/permissions_updater.h"
43 #include "chrome/browser/extensions/shared_module_service.h" 43 #include "chrome/browser/extensions/shared_module_service.h"
44 #include "chrome/browser/extensions/unpacked_installer.h" 44 #include "chrome/browser/extensions/unpacked_installer.h"
45 #include "chrome/browser/extensions/updater/chrome_extension_downloader_factory. h" 45 #include "chrome/browser/extensions/updater/chrome_extension_downloader_factory. h"
46 #include "chrome/browser/extensions/updater/extension_updater.h" 46 #include "chrome/browser/extensions/updater/extension_updater.h"
47 #include "chrome/browser/google/google_brand.h" 47 #include "chrome/browser/google/google_brand.h"
48 #include "chrome/browser/profiles/profile.h" 48 #include "chrome/browser/profiles/profile.h"
49 #include "chrome/browser/search/thumbnail_source.h"
50 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" 49 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h"
51 #include "chrome/browser/ui/webui/favicon_source.h" 50 #include "chrome/browser/ui/webui/favicon_source.h"
51 #include "chrome/browser/ui/webui/ntp/thumbnail_source.h"
52 #include "chrome/browser/ui/webui/theme_source.h" 52 #include "chrome/browser/ui/webui/theme_source.h"
53 #include "chrome/common/chrome_switches.h" 53 #include "chrome/common/chrome_switches.h"
54 #include "chrome/common/crash_keys.h" 54 #include "chrome/common/crash_keys.h"
55 #include "chrome/common/extensions/extension_constants.h" 55 #include "chrome/common/extensions/extension_constants.h"
56 #include "chrome/common/extensions/features/feature_channel.h" 56 #include "chrome/common/extensions/features/feature_channel.h"
57 #include "chrome/common/url_constants.h" 57 #include "chrome/common/url_constants.h"
58 #include "components/content_settings/core/browser/host_content_settings_map.h" 58 #include "components/content_settings/core/browser/host_content_settings_map.h"
59 #include "components/crx_file/id_util.h" 59 #include "components/crx_file/id_util.h"
60 #include "components/startup_metric_utils/startup_metric_utils.h" 60 #include "components/startup_metric_utils/startup_metric_utils.h"
61 #include "content/public/browser/devtools_agent_host.h" 61 #include "content/public/browser/devtools_agent_host.h"
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after
2597 } 2597 }
2598 2598
2599 void ExtensionService::OnProfileDestructionStarted() { 2599 void ExtensionService::OnProfileDestructionStarted() {
2600 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); 2600 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs();
2601 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); 2601 for (ExtensionIdSet::iterator it = ids_to_unload.begin();
2602 it != ids_to_unload.end(); 2602 it != ids_to_unload.end();
2603 ++it) { 2603 ++it) {
2604 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); 2604 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN);
2605 } 2605 }
2606 } 2606 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/history/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698