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

Unified Diff: chrome/browser/extensions/extensions_service.cc

Issue 5526002: Show extension tabs in task manager and correctly label apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move IsInstalledApp to ExtensionsService. Created 10 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extensions_service.cc
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index 8284defa8beba74c927f4ac02c46eb5339534173..5fb1d24b61542288cbc33a4bd87669649bc39bf8 100644
--- a/chrome/browser/extensions/extensions_service.cc
+++ b/chrome/browser/extensions/extensions_service.cc
@@ -524,6 +524,16 @@ bool ExtensionsService::IsDownloadFromMiniGallery(const GURL& download_url) {
false); // case_sensitive
}
+bool ExtensionsService::IsInstalledApp(const GURL& url) {
+ // Check for hosted app.
+ if (GetExtensionByWebExtent(url) != NULL)
+ return true;
+
+ // Check for packaged app.
+ const Extension* extension = GetExtensionByURL(url);
+ return extension != NULL && extension->is_app();
+}
+
// static
bool ExtensionsService::UninstallExtensionHelper(
ExtensionsService* extensions_service,
« no previous file with comments | « chrome/browser/extensions/extensions_service.h ('k') | chrome/browser/task_manager/task_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698