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

Unified Diff: chrome/browser/ui/panels/panel_drag_controller.cc

Issue 1499423004: Remove kint32max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@kint9
Patch Set: rebase Created 5 years 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/panels/panel_drag_controller.cc
diff --git a/chrome/browser/ui/panels/panel_drag_controller.cc b/chrome/browser/ui/panels/panel_drag_controller.cc
index 0e19fdd3641071a42a49c4af5846fd2f0638ab96..79193106ed7b0c046ff0f7c6a23175249e37adc8 100644
--- a/chrome/browser/ui/panels/panel_drag_controller.cc
+++ b/chrome/browser/ui/panels/panel_drag_controller.cc
@@ -4,6 +4,10 @@
#include "chrome/browser/ui/panels/panel_drag_controller.h"
+#include <stdint.h>
+
+#include <limits>
+
#include "base/logging.h"
#include "chrome/browser/ui/panels/detached_panel_collection.h"
#include "chrome/browser/ui/panels/detached_panel_drag_handler.h"
@@ -649,7 +653,7 @@ Panel* PanelDragController::FindPanelToGlue(
GlueAction action,
gfx::Rect* target_bounds,
GlueEdge* target_edge) const {
- int best_distance = kint32max;
+ int best_distance = std::numeric_limits<int32_t>::max();
Panel* best_matching_panel = NULL;
// Compute the potential bounds for the dragging panel.

Powered by Google App Engine
This is Rietveld 408576698