OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/webui/extensions/chromeos/kiosk_apps_handler.h" | 5 #include "chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 return; | 362 return; |
363 | 363 |
364 base::DictionaryValue app_dict; | 364 base::DictionaryValue app_dict; |
365 PopulateAppDict(app_data, &app_dict); | 365 PopulateAppDict(app_data, &app_dict); |
366 | 366 |
367 web_ui()->CallJavascriptFunctionUnsafe( | 367 web_ui()->CallJavascriptFunctionUnsafe( |
368 "extensions.KioskAppsOverlay.updateApp", app_dict); | 368 "extensions.KioskAppsOverlay.updateApp", app_dict); |
369 } | 369 } |
370 | 370 |
371 void KioskAppsHandler::ShowError(const std::string& app_id) { | 371 void KioskAppsHandler::ShowError(const std::string& app_id) { |
372 base::StringValue app_id_value(app_id); | 372 base::Value app_id_value(app_id); |
373 web_ui()->CallJavascriptFunctionUnsafe( | 373 web_ui()->CallJavascriptFunctionUnsafe( |
374 "extensions.KioskAppsOverlay.showError", app_id_value); | 374 "extensions.KioskAppsOverlay.showError", app_id_value); |
375 | 375 |
376 kiosk_app_manager_->RemoveApp(app_id, owner_settings_service_); | 376 kiosk_app_manager_->RemoveApp(app_id, owner_settings_service_); |
377 } | 377 } |
378 | 378 |
379 } // namespace chromeos | 379 } // namespace chromeos |
OLD | NEW |