| 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 "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/first_run/first_run.h" | 10 #include "chrome/browser/first_run/first_run.h" |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 namespace default_apps { | 108 namespace default_apps { |
| 109 | 109 |
| 110 void RegisterUserPrefs(PrefService* prefs) { | 110 void RegisterUserPrefs(PrefService* prefs) { |
| 111 prefs->RegisterIntegerPref(prefs::kDefaultAppsInstallState, kUnknown, | 111 prefs->RegisterIntegerPref(prefs::kDefaultAppsInstallState, kUnknown, |
| 112 PrefService::UNSYNCABLE_PREF); | 112 PrefService::UNSYNCABLE_PREF); |
| 113 } | 113 } |
| 114 | 114 |
| 115 Provider::Provider(Profile* profile, | 115 Provider::Provider(Profile* profile, |
| 116 VisitorInterface* service, | 116 VisitorInterface* service, |
| 117 ExternalExtensionLoader* loader, | 117 extensions::ExternalLoader* loader, |
| 118 extensions::Extension::Location crx_location, | 118 extensions::Extension::Location crx_location, |
| 119 extensions::Extension::Location download_location, | 119 extensions::Extension::Location download_location, |
| 120 int creation_flags) | 120 int creation_flags) |
| 121 : ExternalExtensionProviderImpl(service, loader, crx_location, | 121 : extensions::ExternalProviderImpl(service, loader, crx_location, |
| 122 download_location, creation_flags), | 122 download_location, creation_flags), |
| 123 profile_(profile) { | 123 profile_(profile) { |
| 124 DCHECK(profile); | 124 DCHECK(profile); |
| 125 set_auto_acknowledge(true); | 125 set_auto_acknowledge(true); |
| 126 } | 126 } |
| 127 | 127 |
| 128 void Provider::VisitRegisteredExtension() { | 128 void Provider::VisitRegisteredExtension() { |
| 129 if (!profile_ || !ShouldInstallInProfile(profile_)) { | 129 if (!profile_ || !ShouldInstallInProfile(profile_)) { |
| 130 base::DictionaryValue* prefs = new base::DictionaryValue; | 130 base::DictionaryValue* prefs = new base::DictionaryValue; |
| 131 SetPrefs(prefs); | 131 SetPrefs(prefs); |
| 132 return; | 132 return; |
| 133 } | 133 } |
| 134 | 134 |
| 135 ExternalExtensionProviderImpl::VisitRegisteredExtension(); | 135 extensions::ExternalProviderImpl::VisitRegisteredExtension(); |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace default_apps | 138 } // namespace default_apps |
| OLD | NEW |