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

Unified Diff: third_party/libaddressinput/chromium/cpp/src/address_problem.cc

Issue 116363003: [rac] Validate an address. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Constify and remove .get() Created 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/libaddressinput/chromium/cpp/src/address_problem.cc
diff --git a/third_party/libaddressinput/chromium/cpp/src/address_problem.cc b/third_party/libaddressinput/chromium/cpp/src/address_problem.cc
index 14a00303af86ebec8ebd4468d0646be54de3faeb..d823e114de7867044a800a730a0121c42aa60f6b 100644
--- a/third_party/libaddressinput/chromium/cpp/src/address_problem.cc
+++ b/third_party/libaddressinput/chromium/cpp/src/address_problem.cc
@@ -15,10 +15,18 @@
#include <libaddressinput/address_problem.h>
#include <ostream>
+#include <string>
namespace i18n {
namespace addressinput {
+AddressProblem::AddressProblem(AddressField field,
+ Type type,
+ const std::string& description)
+ : field(field), type(type), description(description) {}
+
+AddressProblem::~AddressProblem() {}
+
std::ostream& operator<<(std::ostream& o, AddressProblem::Type problem_type) {
switch (problem_type) {
case AddressProblem::MISSING_REQUIRED_FIELD:

Powered by Google App Engine
This is Rietveld 408576698