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

Issue 10835029: base: Suggest forward declare DefaultSingletonTraits in header files. (Closed)

Created:
8 years, 4 months ago by tfarina
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

base: Suggest forward declare DefaultSingletonTraits in header files. Instead of including singleton.h in header files we can forward declare it, and include only in the source file. There is also a presubmit check for this, I didn't know ;) R=willchan@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=149095

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M base/memory/singleton.h View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
tfarina
8 years, 4 months ago (2012-07-30 01:15:33 UTC) #1
willchan no longer on Chromium
lgtm
8 years, 4 months ago (2012-07-30 18:19:03 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/10835029/1
8 years, 4 months ago (2012-07-30 18:19:13 UTC) #3
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 18:19:15 UTC) #4
Presubmit check for 10835029-1 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
If this change has an associated bug, add BUG=[bug number].

** Presubmit ERRORS **
Found Singleton<T> in the following header files.
Please move them to an appropriate source file so that the template gets
instantiated in a single compilation unit.
  base/memory/singleton.h

Powered by Google App Engine
This is Rietveld 408576698