mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Create 2272 release branch for CEF3.
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/2272@1993 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
24
libcef/browser/proxy_stubs.cc
Normal file
24
libcef/browser/proxy_stubs.cc
Normal file
@@ -0,0 +1,24 @@
|
||||
// Copyright (c) 2012 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.
|
||||
|
||||
#include "base/logging.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
|
||||
// Used by chrome/browser/spellchecker/spellcheck_factory.cc.
|
||||
namespace chrome {
|
||||
|
||||
// Returns the original browser context even for Incognito contexts.
|
||||
content::BrowserContext* GetBrowserContextRedirectedInIncognito(
|
||||
content::BrowserContext* context) {
|
||||
return context;
|
||||
}
|
||||
|
||||
// Returns non-NULL even for Incognito contexts so that a separate
|
||||
// instance of a service is created for the Incognito context.
|
||||
content::BrowserContext* GetBrowserContextOwnInstanceInIncognito(
|
||||
content::BrowserContext* context) {
|
||||
return context;
|
||||
}
|
||||
|
||||
} // namespace chrome
|
Reference in New Issue
Block a user