| Index: base/at_exit.h
|
| diff --git a/base/at_exit.h b/base/at_exit.h
|
| index fa0f27766c42e1bb5186cb9ba45632d21a82b363..35c96b932a67efd85616e665ce15464099f84367 100644
|
| --- a/base/at_exit.h
|
| +++ b/base/at_exit.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -28,13 +28,6 @@ namespace base {
|
| // callbacks and singleton destructors will be called.
|
|
|
| class AtExitManager {
|
| - protected:
|
| - // This constructor will allow this instance of AtExitManager to be created
|
| - // even if one already exists. This should only be used for testing!
|
| - // AtExitManagers are kept on a global stack, and it will be removed during
|
| - // destruction. This allows you to shadow another AtExitManager.
|
| - explicit AtExitManager(bool shadow);
|
| -
|
| public:
|
| typedef void (*AtExitCallbackType)(void*);
|
|
|
| @@ -52,6 +45,13 @@ class AtExitManager {
|
| // is possible to register new callbacks after calling this function.
|
| static void ProcessCallbacksNow();
|
|
|
| + protected:
|
| + // This constructor will allow this instance of AtExitManager to be created
|
| + // even if one already exists. This should only be used for testing!
|
| + // AtExitManagers are kept on a global stack, and it will be removed during
|
| + // destruction. This allows you to shadow another AtExitManager.
|
| + explicit AtExitManager(bool shadow);
|
| +
|
| private:
|
| struct CallbackAndParam {
|
| CallbackAndParam(AtExitCallbackType func, void* param)
|
|
|