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

Unified Diff: chrome/browser/gtk/first_run_bubble.cc

Issue 3142020: Changed ChromeOS status bar menu handlers to obey --enable-tabbed-options swi... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/chromeos/frame/browser_view.cc ('k') | chrome/browser/options_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/first_run_bubble.cc
===================================================================
--- chrome/browser/gtk/first_run_bubble.cc (revision 56688)
+++ chrome/browser/gtk/first_run_bubble.cc (working copy)
@@ -8,10 +8,12 @@
#include "app/gtk_util.h"
#include "app/l10n_util.h"
+#include "base/command_line.h"
#include "base/i18n/rtl.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/browser.h"
+#include "chrome/browser/browser_list.h"
#include "chrome/browser/gtk/gtk_theme_provider.h"
-#include "chrome/browser/options_window.h"
#include "chrome/browser/search_engines/util.h"
#include "chrome/common/notification_service.h"
#include "gfx/gtk_util.h"
@@ -171,10 +173,11 @@
void FirstRunBubble::HandleKeepButton(GtkWidget* sender) {
bubble_->Close();
+}
-}
void FirstRunBubble::HandleChangeButton(GtkWidget* sender) {
bubble_->Close();
- ShowOptionsWindow(OPTIONS_PAGE_GENERAL, OPTIONS_GROUP_DEFAULT_SEARCH,
- profile_);
+ Browser* browser = BrowserList::GetLastActive();
+ DCHECK(browser);
+ browser->OpenSearchEngineOptionsDialog();
}
« no previous file with comments | « chrome/browser/chromeos/frame/browser_view.cc ('k') | chrome/browser/options_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698