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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 10702044: Merge 144001 - Update BrowserView::ProcessFullscreen OmniboxViewWin use; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 6 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/views/location_bar/location_bar_view.cc
===================================================================
--- chrome/browser/ui/views/location_bar/location_bar_view.cc (revision 144960)
+++ chrome/browser/ui/views/location_bar/location_bar_view.cc (working copy)
@@ -7,7 +7,6 @@
#include <algorithm>
#include <map>
-#include "base/command_line.h"
#include "base/stl_util.h"
#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
@@ -61,7 +60,6 @@
#include "ui/base/layout.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/base/theme_provider.h"
-#include "ui/base/ui_base_switches.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/image/image.h"
@@ -88,27 +86,6 @@
return tab_contents ? tab_contents->web_contents() : NULL;
}
-bool UseOmniboxViews() {
-#if defined(OS_WIN) && !defined(USE_AURA)
- static bool kUseOmniboxViews = CommandLine::ForCurrentProcess()->
- HasSwitch(switches::kEnableViewsTextfield);
- return kUseOmniboxViews;
-#endif
- return true;
-}
-
-// Return |view| as an OmniboxViewViews, or NULL if it is of a different type.
-OmniboxViewViews* GetOmniboxViewViews(OmniboxView* view) {
- return UseOmniboxViews() ? static_cast<OmniboxViewViews*>(view) : NULL;
-}
-
-#if defined(OS_WIN) && !defined(USE_AURA)
-// Return |view| as an OmniboxViewWin, or NULL if it is of a different type.
-OmniboxViewWin* GetOmniboxViewWin(OmniboxView* view) {
- return UseOmniboxViews() ? NULL : static_cast<OmniboxViewWin*>(view);
-}
-#endif
-
// Height of the location bar's round corner region.
const int kBorderRoundCornerHeight = 5;
// Width of location bar's round corner region.

Powered by Google App Engine
This is Rietveld 408576698