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

Side by Side Diff: dbus/property.cc

Issue 1997153002: libchrome: Several upstreamable fixes from libchrome Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Addressed feedback Created 4 years, 7 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
« base/metrics/histogram.cc ('K') | « dbus/object_proxy.cc ('k') | 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) 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 "dbus/property.h" 5 #include "dbus/property.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 LOG(WARNING) << "Property changed signal has wrong parameters: " 82 LOG(WARNING) << "Property changed signal has wrong parameters: "
83 << "expected dictionary: " << signal->ToString(); 83 << "expected dictionary: " << signal->ToString();
84 } 84 }
85 85
86 if (!InvalidatePropertiesFromReader(&reader)) { 86 if (!InvalidatePropertiesFromReader(&reader)) {
87 LOG(WARNING) << "Property changed signal has wrong parameters: " 87 LOG(WARNING) << "Property changed signal has wrong parameters: "
88 << "expected array to invalidate: " << signal->ToString(); 88 << "expected array to invalidate: " << signal->ToString();
89 } 89 }
90 } 90 }
91 91
92 void PropertySet::ChangedConnected(const std::string& interface_name, 92 void PropertySet::ChangedConnected(const std::string& /*interface_name*/,
93 const std::string& signal_name, 93 const std::string& signal_name,
94 bool success) { 94 bool success) {
95 LOG_IF(WARNING, !success) << "Failed to connect to " << signal_name 95 LOG_IF(WARNING, !success) << "Failed to connect to " << signal_name
96 << "signal."; 96 << "signal.";
97 } 97 }
98 98
99 99
100 void PropertySet::Get(PropertyBase* property, GetCallback callback) { 100 void PropertySet::Get(PropertyBase* property, GetCallback callback) {
101 MethodCall method_call(kPropertiesInterface, kPropertiesGet); 101 MethodCall method_call(kPropertiesInterface, kPropertiesGet);
102 MessageWriter writer(&method_call); 102 MessageWriter writer(&method_call);
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 template class Property<double>; 670 template class Property<double>;
671 template class Property<std::string>; 671 template class Property<std::string>;
672 template class Property<ObjectPath>; 672 template class Property<ObjectPath>;
673 template class Property<std::vector<std::string> >; 673 template class Property<std::vector<std::string> >;
674 template class Property<std::vector<ObjectPath> >; 674 template class Property<std::vector<ObjectPath> >;
675 template class Property<std::vector<uint8_t>>; 675 template class Property<std::vector<uint8_t>>;
676 template class Property<std::map<std::string, std::string>>; 676 template class Property<std::map<std::string, std::string>>;
677 template class Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>; 677 template class Property<std::vector<std::pair<std::vector<uint8_t>, uint16_t>>>;
678 678
679 } // namespace dbus 679 } // namespace dbus
OLDNEW
« base/metrics/histogram.cc ('K') | « dbus/object_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698