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

Unified Diff: chrome/installer/util/work_item_list.h

Issue 10823437: Callback flow to register Chrome and update shortcuts after OS upgrade to Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reimplementing registry changes using AppCommand; adding checks in InstallationValidator. Created 8 years, 4 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: chrome/installer/util/work_item_list.h
diff --git a/chrome/installer/util/work_item_list.h b/chrome/installer/util/work_item_list.h
index 5f50fe45b43fa060912709633863adc016b9042e..3931649004fa829833e29b547b7200a6a23d16db 100644
--- a/chrome/installer/util/work_item_list.h
+++ b/chrome/installer/util/work_item_list.h
@@ -113,6 +113,15 @@ class WorkItemList : public WorkItem {
int64 value_data,
bool overwrite);
+ // Add an "optional" boolean registry value, specified by value_data.
gab 2012/08/28 16:08:19 Remove quotes around "optional"
grt (UTC plus 2) 2012/08/28 19:35:40 i think this function is too special-purpose to be
huangs 2012/08/29 17:02:54 Moved to app_command.cc as local helper.
+ // In the registry, a non-zero value is "true", and a missing or zero value
+ // is "false". If value_data == true, add a SetRegValueWorkItem that sets
+ // registry value of 1 with REG_DWORD type. Otherwise add a
+ // DeleteRegValueWorkItem that deletes the registry value.
+ virtual WorkItem* AddSetOptionalBoolRegValueWorkItem(
gab 2012/08/28 16:08:19 I believe all other methods in this file are teste
huangs 2012/08/29 17:02:54 No longer need to test!
+ HKEY predefined_root, const std::wstring& key_path,
gab 2012/08/28 16:08:19 Use string16
huangs 2012/08/29 17:02:54 Now I no longer need to change this file. Should
+ const std::wstring& value_name, bool value_data);
+
// Add a SelfRegWorkItem that registers or unregisters a DLL at the
// specified path. If user_level_registration is true, then alternate
// registration and unregistration entry point names will be used.

Powered by Google App Engine
This is Rietveld 408576698