| 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/external_registry_loader_win.h" | 5 #include "chrome/browser/extensions/external_registry_loader_win.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/memory/scoped_handle.h" | 10 #include "base/memory/scoped_handle.h" |
| 11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "base/values.h" | 15 #include "base/values.h" |
| 16 #include "base/version.h" | 16 #include "base/version.h" |
| 17 #include "base/win/registry.h" | 17 #include "base/win/registry.h" |
| 18 #include "chrome/browser/extensions/external_provider_impl.h" | 18 #include "chrome/browser/extensions/external_provider_impl.h" |
| 19 #include "chrome/common/extensions/extension.h" |
| 19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 20 | 21 |
| 21 using content::BrowserThread; | 22 using content::BrowserThread; |
| 22 | 23 |
| 23 namespace { | 24 namespace { |
| 24 | 25 |
| 25 // The Registry subkey that contains information about external extensions. | 26 // The Registry subkey that contains information about external extensions. |
| 26 const char kRegistryExtensions[] = "Software\\Google\\Chrome\\Extensions"; | 27 const char kRegistryExtensions[] = "Software\\Google\\Chrome\\Extensions"; |
| 27 | 28 |
| 28 // Registry value of of that key that defines the path to the .crx file. | 29 // Registry value of of that key that defines the path to the .crx file. |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 | 149 |
| 149 prefs_.reset(prefs.release()); | 150 prefs_.reset(prefs.release()); |
| 150 HISTOGRAM_TIMES("Extensions.ExternalRegistryLoaderWin", | 151 HISTOGRAM_TIMES("Extensions.ExternalRegistryLoaderWin", |
| 151 base::TimeTicks::Now() - start_time); | 152 base::TimeTicks::Now() - start_time); |
| 152 BrowserThread::PostTask( | 153 BrowserThread::PostTask( |
| 153 BrowserThread::UI, FROM_HERE, | 154 BrowserThread::UI, FROM_HERE, |
| 154 base::Bind(&ExternalRegistryLoader::LoadFinished, this)); | 155 base::Bind(&ExternalRegistryLoader::LoadFinished, this)); |
| 155 } | 156 } |
| 156 | 157 |
| 157 } // namespace extensions | 158 } // namespace extensions |
| OLD | NEW |