Chromium Code Reviews| Index: chrome/browser/ui/startup/startup_browser_creator.cc |
| diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc |
| index 639d5b2cb93b32b163a02154077598946e5bb364..b23b416af325ecba0a5c4974102758d32c88df30 100644 |
| --- a/chrome/browser/ui/startup/startup_browser_creator.cc |
| +++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
| @@ -103,7 +103,7 @@ |
| #endif |
| #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| -#include "ui/views/widget/desktop_aura/x11_desktop_handler.h" |
| +#include "ui/events/platform/x11/x11_event_source.h" |
| #endif |
| #if defined(ENABLE_PRINT_PREVIEW) |
| @@ -711,8 +711,9 @@ bool StartupBrowserCreator::ProcessCmdLineImpl( |
| uint64_t time; |
| std::string switch_value = |
| command_line.GetSwitchValueASCII(switches::kWmUserTimeMs); |
| - if (base::StringToUint64(switch_value, &time)) { |
| - views::X11DesktopHandler::get()->set_wm_user_time_ms( |
| + if (base::StringToUint64(switch_value, &time) && |
| + ui::X11EventSource::HasInstance()) { |
| + ui::X11EventSource::GetInstance()->SetLastSeenServerTime( |
|
danakj
2016/08/11 21:48:19
I'm a bit unsure about why we're using the "window
Tom (Use chromium acct)
2016/08/15 18:42:45
It's because metacity/mutter/muffin all deny activ
|
| static_cast<Time>(time)); |
| } |
| } |