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

Unified Diff: base/time_mac.cc

Issue 16917011: mac: Replace base::mac::ScopedCFTypeRef with base::ScopedCFTypeRef. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: base/time_mac.cc
diff --git a/base/time_mac.cc b/base/time_mac.cc
index 883a35ba129a2d76bbf579f26d26d94ad3a55b39..91e9864952c9319c7fce5c19636d092ab7ddac8a 100644
--- a/base/time_mac.cc
+++ b/base/time_mac.cc
@@ -139,8 +139,8 @@ Time Time::FromExploded(bool is_local, const Exploded& exploded) {
date.month = exploded.month;
date.year = exploded.year;
- base::mac::ScopedCFTypeRef<CFTimeZoneRef>
- time_zone(is_local ? CFTimeZoneCopySystem() : NULL);
+ base::ScopedCFTypeRef<CFTimeZoneRef> time_zone(
+ is_local ? CFTimeZoneCopySystem() : NULL);
CFAbsoluteTime seconds = CFGregorianDateGetAbsoluteTime(date, time_zone) +
kCFAbsoluteTimeIntervalSince1970;
return Time(static_cast<int64>(seconds * kMicrosecondsPerSecond) +
@@ -157,8 +157,8 @@ void Time::Explode(bool is_local, Exploded* exploded) const {
kWindowsEpochDeltaSeconds -
kCFAbsoluteTimeIntervalSince1970;
- base::mac::ScopedCFTypeRef<CFTimeZoneRef>
- time_zone(is_local ? CFTimeZoneCopySystem() : NULL);
+ base::ScopedCFTypeRef<CFTimeZoneRef> time_zone(
+ is_local ? CFTimeZoneCopySystem() : NULL);
CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(seconds, time_zone);
// 1 = Monday, ..., 7 = Sunday.
int cf_day_of_week = CFAbsoluteTimeGetDayOfWeek(seconds, time_zone);

Powered by Google App Engine
This is Rietveld 408576698