| 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 #if !defined(OS_ANDROID) | 9 #if !defined(OS_ANDROID) |
| 10 #include "chrome/browser/first_run/first_run.h" | 10 #include "chrome/browser/first_run/first_run.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 kNeverInstallDefaultApps); | 125 kNeverInstallDefaultApps); |
| 126 } | 126 } |
| 127 } | 127 } |
| 128 | 128 |
| 129 return install_apps; | 129 return install_apps; |
| 130 } | 130 } |
| 131 | 131 |
| 132 Provider::Provider(Profile* profile, | 132 Provider::Provider(Profile* profile, |
| 133 VisitorInterface* service, | 133 VisitorInterface* service, |
| 134 extensions::ExternalLoader* loader, | 134 extensions::ExternalLoader* loader, |
| 135 extensions::Extension::Location crx_location, | 135 extensions::Manifest::Location crx_location, |
| 136 extensions::Extension::Location download_location, | 136 extensions::Manifest::Location download_location, |
| 137 int creation_flags) | 137 int creation_flags) |
| 138 : extensions::ExternalProviderImpl(service, loader, crx_location, | 138 : extensions::ExternalProviderImpl(service, loader, crx_location, |
| 139 download_location, creation_flags), | 139 download_location, creation_flags), |
| 140 profile_(profile), | 140 profile_(profile), |
| 141 is_migration_(false) { | 141 is_migration_(false) { |
| 142 DCHECK(profile); | 142 DCHECK(profile); |
| 143 set_auto_acknowledge(true); | 143 set_auto_acknowledge(true); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void Provider::VisitRegisteredExtension() { | 146 void Provider::VisitRegisteredExtension() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 166 for (std::set<std::string>::iterator it = new_default_apps.begin(); | 166 for (std::set<std::string>::iterator it = new_default_apps.begin(); |
| 167 it != new_default_apps.end(); ++it) { | 167 it != new_default_apps.end(); ++it) { |
| 168 prefs->Remove(*it, NULL); | 168 prefs->Remove(*it, NULL); |
| 169 } | 169 } |
| 170 } | 170 } |
| 171 | 171 |
| 172 ExternalProviderImpl::SetPrefs(prefs); | 172 ExternalProviderImpl::SetPrefs(prefs); |
| 173 } | 173 } |
| 174 | 174 |
| 175 } // namespace default_apps | 175 } // namespace default_apps |
| OLD | NEW |