Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: chrome/browser/extensions/api/developer_private/developer_private_api.cc

Issue 1127133006: Extract InstallVerifier from ExtensionSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/browser_context_keyed_service_factories.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/browser_context_keyed_service_factories.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698