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

Side by Side Diff: chrome/browser/chromeos/imageburner/burn_manager.cc

Issue 89243003: Move EmptyString, kWhitespace and the BOM to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/chromeos/imageburner/burn_manager.h" 5 #include "chrome/browser/chromeos/imageburner/burn_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/threading/worker_pool.h" 10 #include "base/threading/worker_pool.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // return its property_name property. 113 // return its property_name property.
114 for (BlockList::const_iterator block_it = config_struct_.begin(); 114 for (BlockList::const_iterator block_it = config_struct_.begin();
115 block_it != config_struct_.end(); 115 block_it != config_struct_.end();
116 ++block_it) { 116 ++block_it) {
117 if (block_it->hwids.find(hwid) != block_it->hwids.end()) { 117 if (block_it->hwids.find(hwid) != block_it->hwids.end()) {
118 PropertyMap::const_iterator property = 118 PropertyMap::const_iterator property =
119 block_it->properties.find(property_name); 119 block_it->properties.find(property_name);
120 if (property != block_it->properties.end()) { 120 if (property != block_it->properties.end()) {
121 return property->second; 121 return property->second;
122 } else { 122 } else {
123 return EmptyString(); 123 return base::EmptyString();
124 } 124 }
125 } 125 }
126 } 126 }
127 127
128 return EmptyString(); 128 return base::EmptyString();
129 } 129 }
130 130
131 // Check if last block has a hwid associated with it, and erase it if it 131 // Check if last block has a hwid associated with it, and erase it if it
132 // doesn't, 132 // doesn't,
133 void ConfigFile::DeleteLastBlockIfHasNoHwid() { 133 void ConfigFile::DeleteLastBlockIfHasNoHwid() {
134 if (!config_struct_.empty() && config_struct_.back().hwids.empty()) { 134 if (!config_struct_.empty() && config_struct_.back().hwids.empty()) {
135 config_struct_.pop_back(); 135 config_struct_.pop_back();
136 } 136 }
137 } 137 }
138 138
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 // Note: in theory, this is not a part of notification, but cancelling 646 // Note: in theory, this is not a part of notification, but cancelling
647 // the running burning task. However, there is no good place to be in the 647 // the running burning task. However, there is no good place to be in the
648 // current code. 648 // current code.
649 // TODO(hidehiko): Clean this up after refactoring. 649 // TODO(hidehiko): Clean this up after refactoring.
650 OnError(IDS_IMAGEBURN_DEVICE_NOT_FOUND_ERROR); 650 OnError(IDS_IMAGEBURN_DEVICE_NOT_FOUND_ERROR);
651 } 651 }
652 } 652 }
653 653
654 } // namespace imageburner 654 } // namespace imageburner
655 } // namespace chromeos 655 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698