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_service.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 namespace protector { | 23 namespace protector { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 const char kBackupPrefsPrefix[] = "backup."; | 27 const char kBackupPrefsPrefix[] = "backup."; |
28 | 28 |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 if (!it2.value().GetAsString(&value)) | 320 if (!it2.value().GetAsString(&value)) |
321 NOTREACHED(); | 321 NOTREACHED(); |
322 base::StringAppendF(&data, "|%s|%s", it2.key().c_str(), value.c_str()); | 322 base::StringAppendF(&data, "|%s|%s", it2.key().c_str(), value.c_str()); |
323 } | 323 } |
324 } | 324 } |
325 } | 325 } |
326 return data; | 326 return data; |
327 } | 327 } |
328 | 328 |
329 } // namespace protector | 329 } // namespace protector |
OLD | NEW |