-
hashimoto@chromium.org authored
Add Profile* as an argument of OpenExternal(). Disallow calling OpenExternal() from threads other than UI thread. Changes for the implementations: Chrome OS implementation: Use the argument Profile and stop posting tasks to UI thread. Win implementation: Post tasks to FILE thread. (for the reason noted in external_protocol_handler.cc) Other implementations: Just add Profile* argument and add thread check. Changes for user code: 1. first_run_dialog.cc: Just pass Profile*. 2. browser_commands.cc: Pass Profile* acquired from Browser. 3. chrome_shell_window_delegate.cc: Pass Profile* acquired from WebContents. 4. external_protocol_handler.cc: Pass Profile* acquired with a pair of render_process_host_id and tab_contents_id. BUG=322682 TEST=git cl try Review URL: https://codereview.chromium.org/107033003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240346 0039d316-1c4b-4281-b951-d872f2087c98
7f0a3efa