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

Side by Side Diff: chrome/browser/chromeos/app_mode/kiosk_app_launch_error.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/app_mode/kiosk_app_data.cc ('k') | chrome/browser/chromeos/app_mode/kiosk_app_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698