[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / profiles / incognito_helpers.h
blob4b430133e16fc5fe44733fb057bdd1cf5fcc1c45
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_
6 #define CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_
8 namespace content {
9 class BrowserContext;
12 namespace chrome {
14 // Returns the original browser context even for Incognito contexts.
15 content::BrowserContext* GetBrowserContextRedirectedInIncognito(
16 content::BrowserContext* context);
18 // Returns non-NULL even for Incognito contexts so that a separate
19 // instance of a service is created for the Incognito context.
20 content::BrowserContext* GetBrowserContextOwnInstanceInIncognito(
21 content::BrowserContext* context);
23 } // namespace chrome
25 #endif // CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_