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

Side by Side Diff: chromeos/dbus/dbus_client_bundle.cc

Issue 1172753003: Move LowerCaseEqualsASCII to base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util
Patch Set: Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chromeos/dbus/dbus_client_bundle.h" 5 #include "chromeos/dbus/dbus_client_bundle.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 { "sms", DBusClientBundle::SMS }, 134 { "sms", DBusClientBundle::SMS },
135 { "system_clock", DBusClientBundle::SYSTEM_CLOCK }, 135 { "system_clock", DBusClientBundle::SYSTEM_CLOCK },
136 { "update_engine", DBusClientBundle::UPDATE_ENGINE }, 136 { "update_engine", DBusClientBundle::UPDATE_ENGINE },
137 }; 137 };
138 138
139 // Parses single command line param value for dbus subsystem. If successful, 139 // Parses single command line param value for dbus subsystem. If successful,
140 // returns its enum representation. Otherwise returns NO_CLIENT. 140 // returns its enum representation. Otherwise returns NO_CLIENT.
141 DBusClientBundle::DBusClientType GetDBusClientType( 141 DBusClientBundle::DBusClientType GetDBusClientType(
142 const std::string& client_type_name) { 142 const std::string& client_type_name) {
143 for (size_t i = 0; i < arraysize(client_type_map); i++) { 143 for (size_t i = 0; i < arraysize(client_type_map); i++) {
144 if (LowerCaseEqualsASCII(client_type_name, client_type_map[i].param_name)) 144 if (base::LowerCaseEqualsASCII(client_type_name,
145 client_type_map[i].param_name))
145 return client_type_map[i].client_type; 146 return client_type_map[i].client_type;
146 } 147 }
147 return DBusClientBundle::NO_CLIENT; 148 return DBusClientBundle::NO_CLIENT;
148 } 149 }
149 150
150 } // namespace 151 } // namespace
151 152
152 DBusClientBundle::DBusClientBundle(DBusClientTypeMask unstub_client_mask) 153 DBusClientBundle::DBusClientBundle(DBusClientTypeMask unstub_client_mask)
153 : unstub_client_mask_(unstub_client_mask) { 154 : unstub_client_mask_(unstub_client_mask) {
154 if (!IsUsingStub(AMPLIFIER)) 155 if (!IsUsingStub(AMPLIFIER))
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 unstub_mask |= client; 382 unstub_mask |= client;
382 } else { 383 } else {
383 LOG(ERROR) << "Unknown dbus client: " << *iter; 384 LOG(ERROR) << "Unknown dbus client: " << *iter;
384 } 385 }
385 } 386 }
386 387
387 return unstub_mask; 388 return unstub_mask;
388 } 389 }
389 390
390 } // namespace chromeos 391 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/utility/importer/ie_importer_win.cc ('k') | components/autofill/content/browser/wallet/form_field_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698