OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/extensions/default_apps_trial.h" | 10 #include "chrome/browser/extensions/default_apps_trial.h" |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 Provider::Provider(Profile* profile, | 107 Provider::Provider(Profile* profile, |
108 VisitorInterface* service, | 108 VisitorInterface* service, |
109 ExternalExtensionLoader* loader, | 109 ExternalExtensionLoader* loader, |
110 Extension::Location crx_location, | 110 Extension::Location crx_location, |
111 Extension::Location download_location, | 111 Extension::Location download_location, |
112 int creation_flags) | 112 int creation_flags) |
113 : ExternalExtensionProviderImpl(service, loader, crx_location, | 113 : ExternalExtensionProviderImpl(service, loader, crx_location, |
114 download_location, creation_flags), | 114 download_location, creation_flags), |
115 profile_(profile) { | 115 profile_(profile) { |
116 DCHECK(profile); | 116 DCHECK(profile); |
| 117 set_auto_acknowledge(true); |
117 } | 118 } |
118 | 119 |
119 void Provider::VisitRegisteredExtension() { | 120 void Provider::VisitRegisteredExtension() { |
120 if (!profile_ || !ShouldInstallInProfile(profile_)) { | 121 if (!profile_ || !ShouldInstallInProfile(profile_)) { |
121 base::DictionaryValue* prefs = new base::DictionaryValue; | 122 base::DictionaryValue* prefs = new base::DictionaryValue; |
122 SetPrefs(prefs); | 123 SetPrefs(prefs); |
123 return; | 124 return; |
124 } | 125 } |
125 | 126 |
126 ExternalExtensionProviderImpl::VisitRegisteredExtension(); | 127 ExternalExtensionProviderImpl::VisitRegisteredExtension(); |
127 } | 128 } |
128 | 129 |
129 } // namespace default_apps | 130 } // namespace default_apps |
OLD | NEW |