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

Side by Side Diff: chrome/browser/ui/webui/extensions/chromeos/kiosk_apps_handler.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/device_log_ui.cc ('k') | chrome/browser/ui/webui/extensions/extension_loader_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698