Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3212)

Unified Diff: chrome_frame/chrome_frame_plugin.h

Issue 890005: Add a command line flag to disable infobars. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_frame/chrome_frame_npapi_unittest.cc ('k') | chrome_frame/delete_chrome_history.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_plugin.h
===================================================================
--- chrome_frame/chrome_frame_plugin.h (revision 42751)
+++ chrome_frame/chrome_frame_plugin.h (working copy)
@@ -58,16 +58,25 @@
bool InitializeAutomation(const std::wstring& profile_name,
const std::wstring& extra_chrome_arguments,
- bool incognito) {
+ bool incognito, bool is_widget_mode) {
DCHECK(IsValid());
// We don't want to do incognito when privileged, since we're
// running in browser chrome or some other privileged context.
bool incognito_mode = !is_privileged_ && incognito;
FilePath profile_path;
GetProfilePath(profile_name, &profile_path);
- return automation_client_->Initialize(this, kCommandExecutionTimeout, true,
- profile_path, extra_chrome_arguments,
- incognito_mode);
+ ChromeFrameLaunchParams chrome_launch_params = {
+ kCommandExecutionTimeout,
+ GURL(),
+ GURL(),
+ profile_path,
+ profile_name,
+ extra_chrome_arguments,
+ true,
+ incognito_mode,
+ is_widget_mode
+ };
+ return automation_client_->Initialize(this, chrome_launch_params);
}
// ChromeFrameDelegate implementation
« no previous file with comments | « chrome_frame/chrome_frame_npapi_unittest.cc ('k') | chrome_frame/delete_chrome_history.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698