mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Move chrome members to BrowserProcess and add ProfileManager support (issue #1947)
This commit is contained in:
23
libcef/browser/chrome_profile_manager_stub.cc
Normal file
23
libcef/browser/chrome_profile_manager_stub.cc
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) 2016 The Chromium Embedded Framework Authors.
|
||||
// Portions 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 "libcef/browser/chrome_profile_manager_stub.h"
|
||||
|
||||
#include "libcef/browser/browser_context_impl.h"
|
||||
|
||||
ChromeProfileManagerStub::ChromeProfileManagerStub()
|
||||
: ProfileManager(base::FilePath()) {
|
||||
}
|
||||
|
||||
ChromeProfileManagerStub::~ChromeProfileManagerStub() {
|
||||
}
|
||||
|
||||
bool ChromeProfileManagerStub::IsValidProfile(const void* profile) {
|
||||
if (!profile)
|
||||
return false;
|
||||
return !!CefBrowserContextImpl::GetForContext(
|
||||
reinterpret_cast<content::BrowserContext*>(
|
||||
const_cast<void*>(profile))).get();
|
||||
}
|
Reference in New Issue
Block a user