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

Unified Diff: cloud_print/virtual_driver/win/port_monitor/port_monitor.cc

Issue 14107007: Moved Google Update and install related code to cloud_print/common (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
diff --git a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
index e1cc9b7d40edb184f97fdf30845c72b68246a99f..c13228adff54c9997ebbf11ed3d7940a95e77a85 100644
--- a/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
+++ b/cloud_print/virtual_driver/win/port_monitor/port_monitor.cc
@@ -25,6 +25,7 @@
#include "base/win/windows_version.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/installer/launcher_support/chrome_launcher_support.h"
+#include "cloud_print/common/win/cloud_print_utils.h"
#include "cloud_print/virtual_driver/win/port_monitor/spooler_win.h"
#include "cloud_print/virtual_driver/win/virtual_driver_consts.h"
#include "cloud_print/virtual_driver/win/virtual_driver_helpers.h"
@@ -405,14 +406,7 @@ BOOL WINAPI Monitor2StartDocPort(HANDLE port_handle,
DWORD job_id,
DWORD,
BYTE*) {
- const wchar_t* kUsageKey = L"dr";
- // Set appropriate key to 1 to let Omaha record usage.
- base::win::RegKey key;
- if (key.Create(HKEY_CURRENT_USER, kGoogleUpdateClientStateKey,
- KEY_SET_VALUE) != ERROR_SUCCESS ||
- key.WriteValue(kUsageKey, L"1") != ERROR_SUCCESS) {
- LOG(ERROR) << "Unable to set usage key";
- }
+ SetGoogleUpdateUsage(kGoogleUpdateProductId);
if (port_handle == NULL) {
LOG(ERROR) << "port_handle should not be NULL.";
SetLastError(ERROR_INVALID_PARAMETER);

Powered by Google App Engine
This is Rietveld 408576698