summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/browser_init.cc')
-rw-r--r--chrome/browser/browser_init.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/browser_init.cc b/chrome/browser/browser_init.cc
index 0accf67..2d87070 100644
--- a/chrome/browser/browser_init.cc
+++ b/chrome/browser/browser_init.cc
@@ -65,6 +65,7 @@
#endif
#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/gview_request_interceptor.h"
#include "chrome/browser/views/tabs/tab_overview_message_listener.h"
#endif
@@ -349,6 +350,13 @@ bool LaunchBrowser(const CommandLine& command_line, Profile* profile,
// Create the TabOverviewMessageListener so that it can listen for messages
// regardless of what window has focus.
TabOverviewMessageListener::instance();
+
+ // Install the GView request interceptor that will redirect requests
+ // of compatible documents (PDF, etc) to the GView document viewer.
+ const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
+ if (parsed_command_line.HasSwitch(switches::kEnableGView)) {
+ GViewRequestInterceptor::GetGViewRequestInterceptor();
+ }
#endif
return true;
}