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

Side by Side Diff: chrome/browser/extensions/api/dial/dial_registry.cc

Issue 394383002: Convert DLOG/DVLOG messages in chrome.dial to VLOG. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to wez comments Created 6 years, 5 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) 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/extensions/api/dial/dial_registry.h" 5 #include "chrome/browser/extensions/api/dial/dial_registry.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 registry_generation_++; 254 registry_generation_++;
255 255
256 VLOG(2) << "did_modify_list = " << did_modify_list 256 VLOG(2) << "did_modify_list = " << did_modify_list
257 << ", generation = " << registry_generation_; 257 << ", generation = " << registry_generation_;
258 } 258 }
259 259
260 bool DialRegistry::MaybeAddDevice( 260 bool DialRegistry::MaybeAddDevice(
261 const linked_ptr<DialDeviceData>& device_data) { 261 const linked_ptr<DialDeviceData>& device_data) {
262 DCHECK(thread_checker_.CalledOnValidThread()); 262 DCHECK(thread_checker_.CalledOnValidThread());
263 if (device_by_id_map_.size() == max_devices_) { 263 if (device_by_id_map_.size() == max_devices_) {
264 DLOG(WARNING) << "Maximum registry size reached. Cannot add device."; 264 VLOG(1) << "Maximum registry size reached. Cannot add device.";
265 return false; 265 return false;
266 } 266 }
267 device_data->set_label(NextLabel()); 267 device_data->set_label(NextLabel());
268 device_by_id_map_[device_data->device_id()] = device_data; 268 device_by_id_map_[device_data->device_id()] = device_data;
269 device_by_label_map_[device_data->label()] = device_data; 269 device_by_label_map_[device_data->label()] = device_data;
270 VLOG(2) << "Added device, id = " << device_data->device_id() 270 VLOG(2) << "Added device, id = " << device_data->device_id()
271 << ", label = " << device_data->label(); 271 << ", label = " << device_data->label();
272 return true; 272 return true;
273 } 273 }
274 274
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 case NetworkChangeNotifier::CONNECTION_BLUETOOTH: 322 case NetworkChangeNotifier::CONNECTION_BLUETOOTH:
323 if (!dial_.get()) { 323 if (!dial_.get()) {
324 VLOG(2) << "Connection detected, restarting discovery."; 324 VLOG(2) << "Connection detected, restarting discovery.";
325 StartPeriodicDiscovery(); 325 StartPeriodicDiscovery();
326 } 326 }
327 break; 327 break;
328 } 328 }
329 } 329 }
330 330
331 } // namespace extensions 331 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/dial/dial_api.cc ('k') | chrome/browser/extensions/api/dial/dial_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698