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

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

Issue 11821003: Remove spammy line from the verbose installer log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 <shlwapi.h> 5 #include <shlwapi.h>
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/win/registry.h" 9 #include "base/win/registry.h"
10 #include "chrome/installer/util/create_reg_key_work_item.h" 10 #include "chrome/installer/util/create_reg_key_work_item.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 if (key.CreateWithDisposition(predefined_root_, key_path.c_str(), 57 if (key.CreateWithDisposition(predefined_root_, key_path.c_str(),
58 &disposition, KEY_READ) == ERROR_SUCCESS) { 58 &disposition, KEY_READ) == ERROR_SUCCESS) {
59 if (disposition == REG_OPENED_EXISTING_KEY) { 59 if (disposition == REG_OPENED_EXISTING_KEY) {
60 if (key_created_) { 60 if (key_created_) {
61 // This should not happen. Someone created a subkey under the key 61 // This should not happen. Someone created a subkey under the key
62 // we just created? 62 // we just created?
63 LOG(ERROR) << key_path << " exists, this is not expected."; 63 LOG(ERROR) << key_path << " exists, this is not expected.";
64 return false; 64 return false;
65 } 65 }
66 VLOG(1) << key_path << " exists";
67 // Remove the key path from list if it is already present. 66 // Remove the key path from list if it is already present.
68 key_list_.pop_back(); 67 key_list_.pop_back();
69 } else if (disposition == REG_CREATED_NEW_KEY) { 68 } else if (disposition == REG_CREATED_NEW_KEY) {
70 VLOG(1) << "created " << key_path; 69 VLOG(1) << "created " << key_path;
71 key_created_ = true; 70 key_created_ = true;
72 } else { 71 } else {
73 LOG(ERROR) << "unkown disposition"; 72 LOG(ERROR) << "unkown disposition";
74 return false; 73 return false;
75 } 74 }
76 } else { 75 } else {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 114
116 do { 115 do {
117 key_list_.push_back(key_path); 116 key_list_.push_back(key_path);
118 // This is pure string operation so it does not matter whether the 117 // This is pure string operation so it does not matter whether the
119 // path is file path or registry path. 118 // path is file path or registry path.
120 UpOneDirectoryOrEmpty(&key_path); 119 UpOneDirectoryOrEmpty(&key_path);
121 } while (!key_path.empty()); 120 } while (!key_path.empty());
122 121
123 return true; 122 return true;
124 } 123 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698