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 <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
15 #include "chrome/common/chrome_version_info.h" | 15 #include "chrome/common/chrome_version_info.h" |
16 #include "chrome/common/extensions/extension_constants.h" | 16 #include "chrome/common/extensions/extension_constants.h" |
17 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
18 #include "components/user_prefs/pref_registry_syncable.h" | 18 #include "components/pref_registry/pref_registry_syncable.h" |
19 #include "extensions/common/extension.h" | 19 #include "extensions/common/extension.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 | 21 |
22 #if !defined(OS_ANDROID) | 22 #if !defined(OS_ANDROID) |
23 #include "chrome/browser/first_run/first_run.h" | 23 #include "chrome/browser/first_run/first_run.h" |
24 #endif | 24 #endif |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
28 // Returns true if the app was a default app in Chrome 22 | 28 // Returns true if the app was a default app in Chrome 22 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 for (std::set<std::string>::iterator it = new_default_apps.begin(); | 169 for (std::set<std::string>::iterator it = new_default_apps.begin(); |
170 it != new_default_apps.end(); ++it) { | 170 it != new_default_apps.end(); ++it) { |
171 prefs->Remove(*it, NULL); | 171 prefs->Remove(*it, NULL); |
172 } | 172 } |
173 } | 173 } |
174 | 174 |
175 ExternalProviderImpl::SetPrefs(prefs); | 175 ExternalProviderImpl::SetPrefs(prefs); |
176 } | 176 } |
177 | 177 |
178 } // namespace default_apps | 178 } // namespace default_apps |
OLD | NEW |