Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor command-line switches usage documentation #154

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

Poor command-line switches usage documentation #154

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.Try to find a way to use Chromium command-line switches with JCEF

What is the expected output? What do you see instead?
I would expect a code snip with a basic example, instead, all documentation 
refers to CEF and has no examples, just lists of compatible commands and so... 


What version of the product are you using? On what operating system?
Version 3, Windows

Please provide any additional information below.
I posted a question here as well: 
http://stackoverflow.com/questions/28544562/java-chromium-embedded-framework-jce
f-usage-of-chromium-command-lines

Original issue reported on code.google.com by [email protected] on 16 Feb 2015 at 3:50

@GoogleCodeExporter
Copy link
Author

This is an issue board. You can post your questions regarding JCEF here:
http://www.magpcss.org/ceforum/viewforum.php?f=17&sid=f61b0bfb407ff4c95829ca67f3
0914cd

Anyway, to forward CEF and/or chromium command-line switches to CEF, just pass 
over an array of Strings to CefApp at startup. Example:

public static void main(String [] args) {

    [...]

    ArrayList<String> mySwitches = new ArrayList<>();
    mySwitches.add("--persist-session-cookies=true");
    CefApp app = CefApp.getInstance(mySwitches.toArray(new String[mySwitches.size()]));
    CefClient client = app.createClient();
    CefBrowser browser = client.createBrowser("http://www.google.com", false, false);

    [...]
}

Regards,
Kai

Original comment by [email protected] on 20 Feb 2015 at 9:27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant