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

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_model.cc

Issue 10892002: GTK: Do not depend on the notification observer order... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
Index: chrome/browser/ui/toolbar/wrench_menu_model.cc
===================================================================
--- chrome/browser/ui/toolbar/wrench_menu_model.cc (revision 153513)
+++ chrome/browser/ui/toolbar/wrench_menu_model.cc (working copy)
@@ -6,8 +6,8 @@
#include <algorithm>
#include <cmath>
+#include <string>
-#include "base/command_line.h"
#include "base/i18n/number_formatting.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
@@ -39,7 +39,6 @@
#include "chrome/browser/ui/toolbar/encoding_menu_controller.h"
#include "chrome/browser/upgrade_detector.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/profiling.h"
#include "content/public/browser/host_zoom_map.h"
@@ -63,6 +62,11 @@
#include "chrome/browser/ui/gtk/gtk_util.h"
#endif
+#if defined(OS_CHROMEOS)
+#include "base/command_line.h"
+#include "chrome/common/chrome_switches.h"
+#endif
+
#if defined(OS_WIN)
#include "base/win/metro.h"
#include "base/win/windows_version.h"
@@ -687,6 +691,14 @@
IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
}
+#if defined(TOOLKIT_GTK)
+void WrenchMenuModel::Rebuild() {
+ Clear();
Lei Zhang 2012/08/28 06:41:00 SimpleMenu::Clear() says, "Note that it does not f
+ Build();
+ UpdateZoomControls();
+}
+#endif
+
string16 WrenchMenuModel::GetSyncMenuLabel() const {
Profile* profile = browser_->profile()->GetOriginalProfile();
return sync_ui_util::GetSyncMenuLabel(

Powered by Google App Engine
This is Rietveld 408576698