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

Side by Side Diff: chrome/installer/util/set_reg_value_work_item.cc

Issue 16421004: Use a direct include of strings headers in chrome/installer/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/installer/util/set_reg_value_work_item.h" 5 #include "chrome/installer/util/set_reg_value_work_item.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/win/registry.h" 9 #include "base/win/registry.h"
10 #include "chrome/installer/util/logging_installer.h" 10 #include "chrome/installer/util/logging_installer.h"
11 11
12 SetRegValueWorkItem::~SetRegValueWorkItem() { 12 SetRegValueWorkItem::~SetRegValueWorkItem() {
13 } 13 }
14 14
15 SetRegValueWorkItem::SetRegValueWorkItem(HKEY predefined_root, 15 SetRegValueWorkItem::SetRegValueWorkItem(HKEY predefined_root,
16 const std::wstring& key_path, 16 const std::wstring& key_path,
17 const std::wstring& value_name, 17 const std::wstring& value_name,
18 const std::wstring& value_data, 18 const std::wstring& value_data,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 result = key.WriteValue(value_name_.c_str(), previous_value, 142 result = key.WriteValue(value_name_.c_str(), previous_value,
143 static_cast<DWORD>(previous_value_.size()), 143 static_cast<DWORD>(previous_value_.size()),
144 previous_type_); 144 previous_type_);
145 VLOG(1) << "rollback: restoring " << value_name_ << " error: " << result; 145 VLOG(1) << "rollback: restoring " << value_name_ << " error: " << result;
146 } else { 146 } else {
147 NOTREACHED(); 147 NOTREACHED();
148 } 148 }
149 149
150 status_ = VALUE_ROLL_BACK; 150 status_ = VALUE_ROLL_BACK;
151 } 151 }
OLDNEW
« no previous file with comments | « chrome/installer/util/self_reg_work_item.cc ('k') | chrome/installer/util/set_reg_value_work_item_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698