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

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

Issue 775193003: Google Now Extension Auto Download (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Year Created 5 years, 10 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 | « no previous file | chrome/browser/ui/app_list/app_list_extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/external_component_loader.cc
diff --git a/chrome/browser/extensions/external_component_loader.cc b/chrome/browser/extensions/external_component_loader.cc
index 327df7055d67c887d8f0770399ce19c733cb94d9..58a871ce7c0e621c0ea2af8e89bddac40ddd72b6 100644
--- a/chrome/browser/extensions/external_component_loader.cc
+++ b/chrome/browser/extensions/external_component_loader.cc
@@ -21,6 +21,10 @@
#include "chromeos/chromeos_switches.h"
#endif
+#if defined(ENABLE_APP_LIST) && defined(OS_CHROMEOS)
benwells 2015/02/10 22:34:01 I think this can just be #if defined(OS_CHROMEOS).
robliao 2015/02/10 22:37:53 We're still gated by the gyp file with regards to
+#include "chrome/browser/ui/app_list/app_list_extension.h"
+#endif
+
namespace extensions {
ExternalComponentLoader::ExternalComponentLoader(Profile* profile)
@@ -85,6 +89,14 @@ void ExternalComponentLoader::StartLoading() {
}
#endif
+#if defined(ENABLE_APP_LIST) && defined(OS_CHROMEOS)
+ std::string app_list_extension_id;
+ if (GetAppListExtensionId(&app_list_extension_id)) {
+ prefs_->SetString(app_list_extension_id + ".external_update_url",
+ extension_urls::GetWebstoreUpdateUrl().spec());
+ }
+#endif
+
LoadFinished();
}
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698