| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/installer/gcapi/gcapi_test_registry_overrider.h" | 5 #include "chrome/installer/gcapi/gcapi_test_registry_overrider.h" |
| 6 | 6 |
| 7 #include "base/guid.h" | 7 #include "base/guid.h" |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "base/strings/stringprintf.h" | |
| 10 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 11 | 10 |
| 12 GCAPITestRegistryOverrider::GCAPITestRegistryOverrider() { | 11 GCAPITestRegistryOverrider::GCAPITestRegistryOverrider() { |
| 13 // Override keys - this is undone during destruction. | 12 // Override keys - this is undone during destruction. |
| 14 override_manager_.OverrideRegistry(HKEY_CURRENT_USER); | 13 override_manager_.OverrideRegistry(HKEY_CURRENT_USER); |
| 15 override_manager_.OverrideRegistry(HKEY_LOCAL_MACHINE); | 14 override_manager_.OverrideRegistry(HKEY_LOCAL_MACHINE); |
| 16 } | 15 } |
| 17 | 16 |
| 18 GCAPITestRegistryOverrider::~GCAPITestRegistryOverrider() { | 17 GCAPITestRegistryOverrider::~GCAPITestRegistryOverrider() { |
| 19 } | 18 } |
| OLD | NEW |