![]() We will do so in LaunchBrowser method: // Add these header files cause we we will be using them You will have to add some header files too. For that you will have to check if our extension has been installed or not to prevent multiple attempts of installation.Ĭhromium handles startup browser creation stuff in this file: src\chrome\browser\ui\startup\startup_browser_ so we install this extension after a profile has been initialized and browser has been launched. Of course, we can do the installation process after a profile has been created too. A profile on a Windows machine should typically exists here: C:\Users\Username\AppData\Local\CompanyName\ChromiumForkName so make sure to delete CompanyName folder before launching Chromium. So we assume no profile exists yet because we will install our extension at run time when it's first launched. Suppose tab_capture.crx is your extension then it's contents should look something like this: if (is_win) // Assumed extension ID of tab_captureĬhromium will create a profile when it's first launched.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |