| 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/api/developer_private/developer_private_api.
h" | 5 #include "chrome/browser/extensions/api/developer_private/developer_private_api.
h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 ((prefs->GetDisableReasons(extension->id()) & | 145 ((prefs->GetDisableReasons(extension->id()) & |
| 146 Extension::DISABLE_NOT_VERIFIED) != 0)) { | 146 Extension::DISABLE_NOT_VERIFIED) != 0)) { |
| 147 should_do_verification_check = true; | 147 should_do_verification_check = true; |
| 148 break; | 148 break; |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 | 151 |
| 152 UMA_HISTOGRAM_BOOLEAN("ExtensionSettings.ShouldDoVerificationCheck", | 152 UMA_HISTOGRAM_BOOLEAN("ExtensionSettings.ShouldDoVerificationCheck", |
| 153 should_do_verification_check); | 153 should_do_verification_check); |
| 154 if (should_do_verification_check) | 154 if (should_do_verification_check) |
| 155 ExtensionSystem::Get(context)->install_verifier()->VerifyAllExtensions(); | 155 InstallVerifier::Get(context)->VerifyAllExtensions(); |
| 156 } | 156 } |
| 157 | 157 |
| 158 } // namespace | 158 } // namespace |
| 159 | 159 |
| 160 namespace ChoosePath = api::developer_private::ChoosePath; | 160 namespace ChoosePath = api::developer_private::ChoosePath; |
| 161 namespace GetItemsInfo = api::developer_private::GetItemsInfo; | 161 namespace GetItemsInfo = api::developer_private::GetItemsInfo; |
| 162 namespace PackDirectory = api::developer_private::PackDirectory; | 162 namespace PackDirectory = api::developer_private::PackDirectory; |
| 163 namespace Reload = api::developer_private::Reload; | 163 namespace Reload = api::developer_private::Reload; |
| 164 | 164 |
| 165 static base::LazyInstance<BrowserContextKeyedAPIFactory<DeveloperPrivateAPI> > | 165 static base::LazyInstance<BrowserContextKeyedAPIFactory<DeveloperPrivateAPI> > |
| (...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 // We explicitly show manifest.json in order to work around an issue in OSX | 1343 // We explicitly show manifest.json in order to work around an issue in OSX |
| 1344 // where opening the directory doesn't focus the Finder. | 1344 // where opening the directory doesn't focus the Finder. |
| 1345 platform_util::ShowItemInFolder(GetProfile(), | 1345 platform_util::ShowItemInFolder(GetProfile(), |
| 1346 extension->path().Append(kManifestFilename)); | 1346 extension->path().Append(kManifestFilename)); |
| 1347 return RespondNow(NoArguments()); | 1347 return RespondNow(NoArguments()); |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 } // namespace api | 1350 } // namespace api |
| 1351 | 1351 |
| 1352 } // namespace extensions | 1352 } // namespace extensions |
| OLD | NEW |