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

Side by Side Diff: chrome/browser/configuration_policy_provider_win.cc

Issue 2806040: Correct description in ADM/ADMX template and change registry key to "Chrome" from "Google Chrome" (Closed)
Patch Set: fix registry key name Created 10 years, 5 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 | « chrome/app/policy/windows/admx/en-US/chrome.adml ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/configuration_policy_provider_win.h" 5 #include "chrome/browser/configuration_policy_provider_win.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/registry.h" 10 #include "base/registry.h"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #include "base/string_piece.h" 12 #include "base/string_piece.h"
13 #include "base/sys_string_conversions.h" 13 #include "base/sys_string_conversions.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 16
17 #if defined(GOOGLE_CHROME_BUILD) 17 #if defined(GOOGLE_CHROME_BUILD)
18 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = 18 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] =
19 L"SOFTWARE\\Policies\\Google\\Google Chrome"; 19 L"SOFTWARE\\Policies\\Google\\Chrome";
20 #else 20 #else
21 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] = 21 const wchar_t ConfigurationPolicyProviderWin::kPolicyRegistrySubKey[] =
22 L"SOFTWARE\\Policies\\Chromium"; 22 L"SOFTWARE\\Policies\\Chromium";
23 #endif 23 #endif
24 24
25 ConfigurationPolicyProviderWin::ConfigurationPolicyProviderWin() { 25 ConfigurationPolicyProviderWin::ConfigurationPolicyProviderWin() {
26 } 26 }
27 27
28 bool ConfigurationPolicyProviderWin::GetRegistryPolicyString( 28 bool ConfigurationPolicyProviderWin::GetRegistryPolicyString(
29 const wchar_t* value_name, string16* result) { 29 const wchar_t* value_name, string16* result) {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 break; 128 break;
129 default: 129 default:
130 NOTREACHED(); 130 NOTREACHED();
131 return false; 131 return false;
132 } 132 }
133 } 133 }
134 134
135 return true; 135 return true;
136 } 136 }
137 137
OLDNEW
« no previous file with comments | « chrome/app/policy/windows/admx/en-US/chrome.adml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698