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

Unified 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, 1 month 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/common/ceee_util.cc
diff --git a/ceee/ie/common/ceee_util.cc b/ceee/ie/common/ceee_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4d9b3d5440c163bd0d8b83f279aa27e7e8e416f3
--- /dev/null
+++ b/ceee/ie/common/ceee_util.cc
@@ -0,0 +1,29 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// Utility functions for CEEE.
+
+#include "ceee/ie/common/ceee_util.h"
+
+#include "base/basictypes.h"
+#include "base/logging.h"
+#include "base/win/registry.h"
+
+#include "toolband.h" // NOLINT
+
+namespace ceee_util {
+
+bool IsIeCeeeRegistered() {
+ wchar_t clsid[40] = { 0 };
+ int num_chars = ::StringFromGUID2(CLSID_ToolBand, clsid, arraysize(clsid));
+ CHECK(num_chars > 0);
+
+ std::wstring path(L"CLSID\\");
+ path += clsid;
+
+ base::win::RegKey key;
+ return key.Open(HKEY_CLASSES_ROOT, path.c_str(), KEY_QUERY_VALUE);
+}
+
+} // namespace ceee_util
« 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