diff options
author | chenyu@chromium.org <chenyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 17:26:33 +0000 |
---|---|---|
committer | chenyu@chromium.org <chenyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-09 17:26:33 +0000 |
commit | 7bd01c0936a140f39e2b15ab72f042197f59dc52 (patch) | |
tree | 08dc38b90ebca00e9f0bb93b0a2a7c1e514aadb2 /base/critical_closure.h | |
parent | 47311eb0cc6b7ab4b702b5accd18e6c3301b9234 (diff) | |
download | chromium_src-7bd01c0936a140f39e2b15ab72f042197f59dc52.zip chromium_src-7bd01c0936a140f39e2b15ab72f042197f59dc52.tar.gz chromium_src-7bd01c0936a140f39e2b15ab72f042197f59dc52.tar.bz2 |
Add inline annotation for base::MakeCriticalClosure() in platform other than ios.
The implementation of this method is basically noop in platforms other than ios and it is put in the header file; this change adds inline annotation to avoid duplicate symbol link error on other platforms.
BUG=NONE
Review URL: https://chromiumcodereview.appspot.com/10837182
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150831 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/critical_closure.h')
-rw-r--r-- | base/critical_closure.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/critical_closure.h b/base/critical_closure.h index bb038dd..ca51ed5 100644 --- a/base/critical_closure.h +++ b/base/critical_closure.h @@ -25,7 +25,7 @@ namespace base { #if defined(OS_IOS) base::Closure MakeCriticalClosure(const base::Closure& closure); #else -base::Closure MakeCriticalClosure(const base::Closure& closure) { +inline base::Closure MakeCriticalClosure(const base::Closure& closure) { // No-op for platforms where the application does not need to acquire // background time for closures to finish when it goes into the background. return closure; |