Patch contributed by georgey@chromium.org.
Review URL: http://codereview.appspot.com/5440052
git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@402
ee073f10-1060-11df-b6a4-
87a95322a99c
namespace i18n {
namespace phonenumbers {
+// There is no Logger in the new base implementation - provide a NOP one.
+class Logger {
+ public:
+ Logger() {}
+ virtual ~Logger() {}
+
+ static void set_logger_impl(Logger*) {}
+};
+
// If Google base/ is used, LOG() and VLOG() from base/logging.h are used
// therefore the default logger implementation (StdoutLogger) instantiated in
// phonenumberutil will actually never be used. Thus provide a dummy
}
const PhoneMetadata* GetCurrentMetadata() const {
- return CHECK_NOTNULL(formatter_.get())->current_metadata_;
+ return formatter_.get()->current_metadata_;
}
int ConvertUnicodeStringPosition(const UnicodeString& s, int pos) const {