| 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 "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 6 #include "base/metrics/histogram.h" | 6 #include "base/metrics/histogram.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/prefs/pref_service.h" | 8 #include "chrome/browser/prefs/pref_service.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/protector/base_prefs_change.h" | 10 #include "chrome/browser/protector/base_prefs_change.h" |
| 11 #include "chrome/browser/protector/histograms.h" | 11 #include "chrome/browser/protector/histograms.h" |
| 12 #include "chrome/common/pref_names.h" | 12 #include "chrome/common/pref_names.h" |
| 13 #include "grit/chromium_strings.h" | 13 #include "grit/chromium_strings.h" |
| 14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
| 15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources_standard.h" |
| 16 #include "ui/base/l10n/l10n_util.h" | 16 #include "ui/base/l10n/l10n_util.h" |
| 17 | 17 |
| 18 namespace protector { | 18 namespace protector { |
| 19 | 19 |
| 20 // Homepage change tracked by Protector. | 20 // Homepage change tracked by Protector. |
| 21 class HomepageChange : public BasePrefsChange { | 21 class HomepageChange : public BasePrefsChange { |
| 22 public: | 22 public: |
| 23 // Enum for reporting UMA statistics. | 23 // Enum for reporting UMA statistics. |
| 24 enum HomepageType { | 24 enum HomepageType { |
| 25 HOMEPAGE_NTP = 0, | 25 HOMEPAGE_NTP = 0, |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 bool actual_show_homepage, | 192 bool actual_show_homepage, |
| 193 const std::string& backup_homepage, | 193 const std::string& backup_homepage, |
| 194 bool backup_homepage_is_ntp, | 194 bool backup_homepage_is_ntp, |
| 195 bool backup_show_homepage) { | 195 bool backup_show_homepage) { |
| 196 return new HomepageChange( | 196 return new HomepageChange( |
| 197 actual_homepage, actual_homepage_is_ntp, actual_show_homepage, | 197 actual_homepage, actual_homepage_is_ntp, actual_show_homepage, |
| 198 backup_homepage, backup_homepage_is_ntp, backup_show_homepage); | 198 backup_homepage, backup_homepage_is_ntp, backup_show_homepage); |
| 199 } | 199 } |
| 200 | 200 |
| 201 } // namespace protector | 201 } // namespace protector |
| OLD | NEW |