OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_ | |
6 #define CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_ | |
7 | |
8 namespace content { | |
9 class BrowserContext; | |
10 } | |
11 | |
12 namespace chrome { | |
13 | |
14 // Returns the original browser context even for Incognito contexts. | |
15 content::BrowserContext* GetBrowserContextRedirectedInIncognito( | |
16 content::BrowserContext* context); | |
17 | |
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( | |
Jói
2013/05/03 17:45:14
Seeing as this is basically a no-op, is it even ne
Paweł Hajdan Jr.
2013/05/03 18:08:19
Yes - mostly to make code readable and obvious.
I
Jói
2013/05/03 18:54:09
Hmm, it just returns the parameter passed to it.
| |
21 content::BrowserContext* context); | |
22 | |
23 } // namespace chrome | |
24 | |
25 #endif // CHROME_BROWSER_PROFILES_INCOGNITO_HELPERS_H_ | |
OLD | NEW |