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

Unified Diff: chrome/browser/ui/startup/startup_browser_creator_impl.cc

Issue 232773008: More removal of GTK code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove base/ so I don't need another stamp. Created 6 years, 8 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/browser/ui/pdf/pdf_tab_helper.cc ('k') | chrome/common/localized_error.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/startup/startup_browser_creator_impl.cc
diff --git a/chrome/browser/ui/startup/startup_browser_creator_impl.cc b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
index 2403d65643aaebd64a7bb536902391059bacabe5..58995aad4ffadadb0d74522eed78c474e5190af1 100644
--- a/chrome/browser/ui/startup/startup_browser_creator_impl.cc
+++ b/chrome/browser/ui/startup/startup_browser_creator_impl.cc
@@ -779,16 +779,8 @@ Browser* StartupBrowserCreatorImpl::OpenTabsInBrowser(
if (!profile_ && browser)
profile_ = browser->profile();
- if (!browser || !browser->is_type_tabbed()) {
+ if (!browser || !browser->is_type_tabbed())
browser = new Browser(Browser::CreateParams(profile_, desktop_type));
- } else {
-#if defined(TOOLKIT_GTK)
- // Setting the time of the last action on the window here allows us to steal
- // focus, which is what the user wants when opening a new tab in an existing
- // browser window.
- gtk_util::SetWMLastUserActionTime(browser->window()->GetNativeWindow());
-#endif
- }
bool first_tab = true;
ProtocolHandlerRegistry* registry = profile_ ?
« no previous file with comments | « chrome/browser/ui/pdf/pdf_tab_helper.cc ('k') | chrome/common/localized_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698