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

Unified Diff: chrome/browser/chromeos/policy/app_pack_updater.cc

Issue 14306004: Put Kiosk App parameters into device settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 8 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
Index: chrome/browser/chromeos/policy/app_pack_updater.cc
diff --git a/chrome/browser/chromeos/policy/app_pack_updater.cc b/chrome/browser/chromeos/policy/app_pack_updater.cc
index 1edc7bf4c9f27401c1dce8c00a1545741ef2286a..61fe56f94512bc609d320c7c722df6f3fc7d3447 100644
--- a/chrome/browser/chromeos/policy/app_pack_updater.cc
+++ b/chrome/browser/chromeos/policy/app_pack_updater.cc
@@ -43,9 +43,6 @@ const char kCRXFileExtension[] = ".crx";
} // namespace
-const char AppPackUpdater::kExtensionId[] = "extension-id";
-const char AppPackUpdater::kUpdateUrl[] = "update-url";
-
// A custom extensions::ExternalLoader that the AppPackUpdater creates and uses
// to publish AppPack updates to the extensions system.
class AppPackExternalLoader
@@ -191,8 +188,8 @@ void AppPackUpdater::LoadPolicy() {
}
std::string id;
std::string update_url;
- if (dict->GetString(kExtensionId, &id) &&
- dict->GetString(kUpdateUrl, &update_url)) {
+ if (dict->GetString(chromeos::kAppPackKeyExtensionId, &id) &&
+ dict->GetString(chromeos::kAppPackKeyUpdateUrl, &update_url)) {
app_pack_extensions_[id] = update_url;
} else {
LOG(WARNING) << "Failed to read required fields for an AppPack entry, "
« no previous file with comments | « chrome/browser/chromeos/policy/app_pack_updater.h ('k') | chrome/browser/chromeos/policy/device_local_account_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698