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/extensions/default_apps.h" | 5 #include "chrome/browser/extensions/default_apps.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/prefs/pref_registry_syncable.h" | 9 #include "chrome/browser/prefs/pref_registry_syncable.h" |
10 #if !defined(OS_ANDROID) | 10 #if !defined(OS_ANDROID) |
11 #include "chrome/browser/first_run/first_run.h" | 11 #include "chrome/browser/first_run/first_run.h" |
12 #endif | 12 #endif |
13 #include "chrome/browser/prefs/pref_service.h" | 13 #include "base/prefs/pref_service.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/common/chrome_switches.h" | 15 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/chrome_version_info.h" | 16 #include "chrome/common/chrome_version_info.h" |
17 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const char kGmailId[] = "pjkljhegncpnkpknbcohdijeoejaedia"; | 23 const char kGmailId[] = "pjkljhegncpnkpknbcohdijeoejaedia"; |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 for (std::set<std::string>::iterator it = new_default_apps.begin(); | 167 for (std::set<std::string>::iterator it = new_default_apps.begin(); |
168 it != new_default_apps.end(); ++it) { | 168 it != new_default_apps.end(); ++it) { |
169 prefs->Remove(*it, NULL); | 169 prefs->Remove(*it, NULL); |
170 } | 170 } |
171 } | 171 } |
172 | 172 |
173 ExternalProviderImpl::SetPrefs(prefs); | 173 ExternalProviderImpl::SetPrefs(prefs); |
174 } | 174 } |
175 | 175 |
176 } // namespace default_apps | 176 } // namespace default_apps |
OLD | NEW |