| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <algorithm> |
| 6 |
| 5 #include "chrome/browser/extensions/default_apps.h" | 7 #include "chrome/browser/extensions/default_apps.h" |
| 6 | 8 |
| 7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 8 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| 9 #include "chrome/browser/prefs/pref_service.h" | 11 #include "chrome/browser/prefs/pref_service.h" |
| 10 #include "chrome/common/chrome_switches.h" | 12 #include "chrome/common/chrome_switches.h" |
| 11 #include "chrome/common/pref_names.h" | 13 #include "chrome/common/pref_names.h" |
| 12 | 14 |
| 13 const int DefaultApps::kAppsPromoCounterMax = 10; | 15 const int DefaultApps::kAppsPromoCounterMax = 10; |
| 14 | 16 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 172 } |
| 171 | 173 |
| 172 bool DefaultApps::GetDefaultAppsInstalled() const { | 174 bool DefaultApps::GetDefaultAppsInstalled() const { |
| 173 return prefs_->GetBoolean(prefs::kDefaultAppsInstalled); | 175 return prefs_->GetBoolean(prefs::kDefaultAppsInstalled); |
| 174 } | 176 } |
| 175 | 177 |
| 176 void DefaultApps::SetDefaultAppsInstalled(bool val) { | 178 void DefaultApps::SetDefaultAppsInstalled(bool val) { |
| 177 prefs_->SetBoolean(prefs::kDefaultAppsInstalled, val); | 179 prefs_->SetBoolean(prefs::kDefaultAppsInstalled, val); |
| 178 prefs_->ScheduleSavePersistentPrefs(); | 180 prefs_->ScheduleSavePersistentPrefs(); |
| 179 } | 181 } |
| OLD | NEW |