OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/protector/protected_prefs_watcher.h" | 5 #include "chrome/browser/protector/protected_prefs_watcher.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "base/values.h" | 11 #include "base/values.h" |
12 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
13 #include "chrome/browser/prefs/pref_set_observer.h" | 13 #include "chrome/browser/prefs/pref_set_observer.h" |
14 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 14 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
15 #include "chrome/browser/prefs/session_startup_pref.h" | 15 #include "chrome/browser/prefs/session_startup_pref.h" |
16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/protector/histograms.h" | 17 #include "chrome/browser/protector/histograms.h" |
18 #include "chrome/browser/protector/protector_utils.h" | 18 #include "chrome/browser/protector/protector_utils.h" |
19 #include "chrome/common/chrome_notification_types.h" | 19 #include "chrome/common/chrome_notification_types.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.h" |
22 | 22 |
| 23 using extensions::ExtensionPrefs; |
| 24 |
23 namespace protector { | 25 namespace protector { |
24 | 26 |
25 namespace { | 27 namespace { |
26 | 28 |
27 // Prefix added to names of backup entries. | 29 // Prefix added to names of backup entries. |
28 const char kBackupPrefsPrefix[] = "backup."; | 30 const char kBackupPrefsPrefix[] = "backup."; |
29 | 31 |
30 // Names of prefs that are backed up. | 32 // Names of prefs that are backed up. |
31 const char* const kProtectedPrefNames[] = { | 33 const char* const kProtectedPrefNames[] = { |
32 prefs::kHomePage, | 34 prefs::kHomePage, |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 NOTREACHED(); | 388 NOTREACHED(); |
387 continue; | 389 continue; |
388 } | 390 } |
389 StringAppendStringDictionary(tab, &data); | 391 StringAppendStringDictionary(tab, &data); |
390 } | 392 } |
391 } | 393 } |
392 return data; | 394 return data; |
393 } | 395 } |
394 | 396 |
395 } // namespace protector | 397 } // namespace protector |
OLD | NEW |