libcef/browser/alloy/chrome_profile_manager_alloy.cc
// Return the active browser context. This is primarily called from Chrome code
// that handles WebUI views and wishes to associate the view's data with a
// particular context (profile). Chrome stores multiple profiles in sub-
// directories of |user_data_dir| and then uses ProfileManager to track which
// profile (sub-directory name) was last active.
//
// TODO(cef): To most closely match Chrome behavior this should return the
// context for the currently active browser (e.g. the browser with input focus).
// Return the main context for now since we don't currently have a good way to
// determine that.
Return the active browser context. This is primarily called from Chrome code
that handles WebUI views and wishes to associate the view's data with a
particular context (profile). Chrome stores multiple profiles in sub
directories of |user_data_dir| and then uses ProfileManager to track which
profile (sub-directory name) was last active.

To most closely match Chrome behavior this should return the
context for the currently active browser .
Return the main context for now since we don't currently have a good way to
determine that.
Return the active browser context . This is primarily called from Chrome code that handles WebUI views and wishes to associate the view ' s data with a particular context ( profile ) . Chrome stores multiple profiles in sub directories of |user_data_dir| and then uses ProfileManager to track which profile ( sub - directory name ) was last active . To most closely match Chrome behavior this should return the context for the currently active browser . Return the main context for now since we don ' t currently have a good way to determine that .
CefBrowserContext* GetActiveBrowserContext() {
  auto request_context = static_cast<CefRequestContextImpl*>(
      CefAppManager::Get()->GetGlobalRequestContext().get());
  return request_context->GetBrowserContext();
}
CefBrowserContext * GetActiveBrowserContext ( ) { auto request_context = static_cast < CefRequestContextImpl * > ( CefAppManager :: Get ( ) -> GetGlobalRequestContext ( ) . get ( ) ) ; return request_context -> GetBrowserContext ( ) ; }
Return the active browser context.
Return the active browser context .