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

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

Issue 259393006: Remove WebUI NTP on Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/prefs/browser_prefs.cc » ('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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 content::URLDataSource::Add(profile_, favicon_source); 1014 content::URLDataSource::Add(profile_, favicon_source);
1015 } 1015 }
1016 1016
1017 #if !defined(OS_ANDROID) 1017 #if !defined(OS_ANDROID)
1018 // Same for chrome://theme/ resources. 1018 // Same for chrome://theme/ resources.
1019 if (extensions::PermissionsData::HasHostPermission( 1019 if (extensions::PermissionsData::HasHostPermission(
1020 extension, GURL(chrome::kChromeUIThemeURL))) { 1020 extension, GURL(chrome::kChromeUIThemeURL))) {
1021 ThemeSource* theme_source = new ThemeSource(profile_); 1021 ThemeSource* theme_source = new ThemeSource(profile_);
1022 content::URLDataSource::Add(profile_, theme_source); 1022 content::URLDataSource::Add(profile_, theme_source);
1023 } 1023 }
1024 #endif
1025 1024
1026 // Same for chrome://thumb/ resources. 1025 // Same for chrome://thumb/ resources.
1027 if (extensions::PermissionsData::HasHostPermission( 1026 if (extensions::PermissionsData::HasHostPermission(
1028 extension, GURL(chrome::kChromeUIThumbnailURL))) { 1027 extension, GURL(chrome::kChromeUIThumbnailURL))) {
1029 ThumbnailSource* thumbnail_source = new ThumbnailSource(profile_, false); 1028 ThumbnailSource* thumbnail_source = new ThumbnailSource(profile_, false);
1030 content::URLDataSource::Add(profile_, thumbnail_source); 1029 content::URLDataSource::Add(profile_, thumbnail_source);
1031 } 1030 }
1031 #endif
1032 } 1032 }
1033 1033
1034 void ExtensionService::NotifyExtensionUnloaded( 1034 void ExtensionService::NotifyExtensionUnloaded(
1035 const Extension* extension, 1035 const Extension* extension,
1036 UnloadedExtensionInfo::Reason reason) { 1036 UnloadedExtensionInfo::Reason reason) {
1037 UnloadedExtensionInfo details(extension, reason); 1037 UnloadedExtensionInfo details(extension, reason);
1038 1038
1039 registry_->TriggerOnUnloaded(extension, reason); 1039 registry_->TriggerOnUnloaded(extension, reason);
1040 1040
1041 content::NotificationService::current()->Notify( 1041 content::NotificationService::current()->Notify(
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2426 void ExtensionService::UnloadAllExtensionsInternal() { 2426 void ExtensionService::UnloadAllExtensionsInternal() {
2427 profile_->GetExtensionSpecialStoragePolicy()->RevokeRightsForAllExtensions(); 2427 profile_->GetExtensionSpecialStoragePolicy()->RevokeRightsForAllExtensions();
2428 2428
2429 registry_->ClearAll(); 2429 registry_->ClearAll();
2430 system_->runtime_data()->ClearAll(); 2430 system_->runtime_data()->ClearAll();
2431 2431
2432 // TODO(erikkay) should there be a notification for this? We can't use 2432 // TODO(erikkay) should there be a notification for this? We can't use
2433 // EXTENSION_UNLOADED since that implies that the extension has been disabled 2433 // EXTENSION_UNLOADED since that implies that the extension has been disabled
2434 // or uninstalled. 2434 // or uninstalled.
2435 } 2435 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/prefs/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698