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

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

Issue 11034027: cros: Preload external extension icons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 8c20453d0c69bd06cadbeb5aaa29e20b743c86fc..5ec034945b82614279367d470b991a2a864331af 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -2350,6 +2350,14 @@ bool ExtensionService::OnExternalExtensionFileFound(
installer->set_expected_version(*version);
installer->set_install_cause(extension_misc::INSTALL_CAUSE_EXTERNAL_FILE);
installer->set_creation_flags(creation_flags);
+#if defined(OS_CHROMEOS)
+ // Preload default app icons so that they could be display timely in launcher
+ // bar. See http://crbug.com/146114
+ const int kLauncherIconSizes[] = { 32, 64 };
+ installer->set_preload_sizes(
+ std::set<int>(kLauncherIconSizes,
+ kLauncherIconSizes + arraysize(kLauncherIconSizes)));
+#endif
installer->InstallCrx(path);
// Depending on the source, a new external extension might not need a user
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698