mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-21 14:40:49 +01:00
Add "cef/" prefix for CEF #includes in libcef/ directory. Sort #includes by following https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
19 lines
602 B
C++
19 lines
602 B
C++
// Copyright 2021 The Chromium Embedded Framework 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 "cef/libcef/browser/alloy/alloy_download_util.h"
|
|
|
|
#include "cef/libcef/browser/alloy/alloy_browser_context.h"
|
|
|
|
namespace alloy {
|
|
|
|
DownloadPrefs* GetDownloadPrefsFromBrowserContext(
|
|
content::BrowserContext* context) {
|
|
// This function is only called with Alloy bootstrap, so the static_cast is
|
|
// safe.
|
|
return static_cast<AlloyBrowserContext*>(context)->GetDownloadPrefs();
|
|
}
|
|
|
|
} // namespace alloy
|