I am trying to set various google chrome settings using a script (for both OS X and Windows). I can successfully set a number of settings and add bookmarks by editing the json settings and bookmark files in the Application Application folder. However, when I try to set a new default search provider, the browser automatically returns to Google search.
The default node search provider in the settings file is as follows:
"default_search_provider": { "enabled": true, "encodings": "UTF-8", "icon_url": "http://www.google.com/favicon.ico", "id": "2", "instant_url": "{google:baseURL}webhp?{google:RLZ}sourceid=chrome-instant&ie={inputEncoding}&ion=1{searchTerms}&nord=1", "keyword": "google.com", "name": "Google", "prepopulate_id": "1", "search_url": "{google:baseURL}search?{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&q={searchTerms}", "suggest_url": "{google:baseSuggestURL}search?client=chrome&hl={language}&q={searchTerms}" }
To add the desired search provider, I simply added it manually (via the wrench menu), looking at the effect of this action in the json file, and then wrote a script to simulate these changes. However, when I change it using a script, the default search provider is used for the first search, but then it is reset the next time chrome starts. What am I missing here?
source share