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

Unified Diff: chrome/renderer/searchbox/searchbox.cc

Issue 148683002: Remove unused param "width_" from SearchBox::OnMarginChange(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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/renderer/searchbox/searchbox.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 8fa87b422841a661f17b39cf97c5d932bcb20d46..893b3dfd516477207314525dd4f37b3bd60dab57 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -150,8 +150,7 @@ SearchBox::SearchBox(content::RenderView* render_view)
display_instant_results_(false),
most_visited_items_cache_(kMaxInstantMostVisitedItemCacheSize),
query_(),
- start_margin_(0),
- width_(0) {
+ start_margin_(0) {
}
SearchBox::~SearchBox() {
@@ -361,9 +360,8 @@ void SearchBox::OnFocusChanged(OmniboxFocusState new_focus_state,
}
}
-void SearchBox::OnMarginChange(int margin, int width) {
+void SearchBox::OnMarginChange(int margin) {
start_margin_ = margin;
- width_ = width;
if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) {
extensions_v8::SearchBoxExtension::DispatchMarginChange(
render_view()->GetWebView()->mainFrame());
@@ -458,7 +456,6 @@ void SearchBox::Reset() {
query_.clear();
suggestion_ = InstantSuggestion();
start_margin_ = 0;
- width_ = 0;
is_focused_ = false;
is_key_capture_enabled_ = false;
theme_info_ = ThemeBackgroundInfo();
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698