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

Unified Diff: chrome/common/time_format.h

Issue 8313003: Wrap TimeFormat unittests into unnamed namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/common/time_format_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/time_format.h
diff --git a/chrome/common/time_format.h b/chrome/common/time_format.h
index d94ac14e30c0d436c5064349b9d39ec63cbab00c..f6612121a755f666052ab2ac87e48751d454b871 100644
--- a/chrome/common/time_format.h
+++ b/chrome/common/time_format.h
@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_TIME_FORMAT_H__
-#define CHROME_COMMON_TIME_FORMAT_H__
+#ifndef CHROME_COMMON_TIME_FORMAT_H_
+#define CHROME_COMMON_TIME_FORMAT_H_
#pragma once
-// This file defines methods to format time values as strings.
-
+#include "base/basictypes.h"
#include "base/string16.h"
namespace base {
@@ -15,6 +14,7 @@ class Time;
class TimeDelta;
}
+// Methods to format time values as strings.
class TimeFormat {
public:
// TimeElapsed, TimeRemaining and TimeRemainingShort functions:
@@ -46,6 +46,9 @@ class TimeFormat {
// time once at the beginning and pass it for each computation.
static string16 RelativeDate(const base::Time& time,
const base::Time* optional_midnight_today);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(TimeFormat);
};
-#endif // CHROME_COMMON_TIME_FORMAT_H__
+#endif // CHROME_COMMON_TIME_FORMAT_H_
« no previous file with comments | « no previous file | chrome/common/time_format_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698