Roll src/third_party/WebKit f298044:aa8346d (svn 202628:202629)
[chromium-blink-merge.git] / chrome / browser / profiles / incognito_helpers.cc
blob6155e9606d67ca9f167fd7568f6fa858b3b166c5
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 #include "chrome/browser/profiles/incognito_helpers.h"
7 #include "chrome/browser/profiles/profile.h"
9 namespace chrome {
11 content::BrowserContext* GetBrowserContextRedirectedInIncognito(
12 content::BrowserContext* context) {
13 return static_cast<Profile*>(context)->GetOriginalProfile();
16 content::BrowserContext* GetBrowserContextOwnInstanceInIncognito(
17 content::BrowserContext* context) {
18 return context;
21 } // namespace chrome