| 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/chromeos/app_mode/kiosk_app_launch_error.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" |
| 6 | 6 |
| 7 #include "base/prefs/scoped_user_pref_update.h" | |
| 8 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 9 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 8 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 10 #include "chrome/grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" |
| 10 #include "components/prefs/scoped_user_pref_update.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // Key under "kiosk" dictionary to store last launch error. | 17 // Key under "kiosk" dictionary to store last launch error. |
| 18 const char kKeyLaunchError[] = "launch_error"; | 18 const char kKeyLaunchError[] = "launch_error"; |
| 19 | 19 |
| 20 } // namespace | 20 } // namespace |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 // static | 78 // static |
| 79 void KioskAppLaunchError::Clear() { | 79 void KioskAppLaunchError::Clear() { |
| 80 PrefService* local_state = g_browser_process->local_state(); | 80 PrefService* local_state = g_browser_process->local_state(); |
| 81 DictionaryPrefUpdate dict_update(local_state, | 81 DictionaryPrefUpdate dict_update(local_state, |
| 82 KioskAppManager::kKioskDictionaryName); | 82 KioskAppManager::kKioskDictionaryName); |
| 83 dict_update->Remove(kKeyLaunchError, NULL); | 83 dict_update->Remove(kKeyLaunchError, NULL); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace chromeos | 86 } // namespace chromeos |
| OLD | NEW |