| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/drive/logging.h" | 5 #include "chrome/browser/chromeos/drive/logging.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "chrome/browser/google_apis/event_logger.h" | 9 #include "chrome/browser/google_apis/event_logger.h" |
| 10 | 10 |
| 11 namespace drive { | 11 namespace drive { |
| 12 namespace util { | 12 namespace util { |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 static base::LazyInstance<google_apis::EventLogger> g_logger = | 15 static base::LazyInstance<google_apis::EventLogger> g_logger = |
| 16 LAZY_INSTANCE_INITIALIZER; | 16 LAZY_INSTANCE_INITIALIZER; |
| 17 | 17 |
| 18 } // namespace | 18 } // namespace |
| (...skipping 12 matching lines...) Expand all Loading... |
| 31 ptr->Log("%s", what.c_str()); | 31 ptr->Log("%s", what.c_str()); |
| 32 } | 32 } |
| 33 | 33 |
| 34 std::vector<google_apis::EventLogger::Event> GetLogHistory() { | 34 std::vector<google_apis::EventLogger::Event> GetLogHistory() { |
| 35 google_apis::EventLogger* ptr = g_logger.Pointer(); | 35 google_apis::EventLogger* ptr = g_logger.Pointer(); |
| 36 return ptr->GetHistory(); | 36 return ptr->GetHistory(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace util | 39 } // namespace util |
| 40 } // namespace drive | 40 } // namespace drive |
| OLD | NEW |