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

Side by Side Diff: ceee/ie/common/ceee_util.cc

Issue 5254012: Always use persistent profile for CF+CEEE installs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to head, address Amit's nit Created 10 years 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 | Annotate | Revision Log
« no previous file with comments | « ceee/ie/common/ceee_util.h ('k') | ceee/ie/common/ceee_util_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // Utility functions for CEEE.
6
7 #include "ceee/ie/common/ceee_util.h"
8
9 #include "base/basictypes.h"
10 #include "base/logging.h"
11 #include "base/win/registry.h"
12
13 #include "toolband.h" // NOLINT
14
15 namespace ceee_util {
16
17 bool IsIeCeeeRegistered() {
18 wchar_t clsid[40] = { 0 };
19 int num_chars = ::StringFromGUID2(CLSID_ToolBand, clsid, arraysize(clsid));
20 CHECK(num_chars > 0);
21
22 std::wstring path(L"CLSID\\");
23 path += clsid;
24
25 base::win::RegKey key;
26 return key.Open(HKEY_CLASSES_ROOT, path.c_str(), KEY_QUERY_VALUE);
27 }
28
29 } // namespace ceee_util
OLDNEW
« no previous file with comments | « ceee/ie/common/ceee_util.h ('k') | ceee/ie/common/ceee_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698