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

Unified Diff: chrome/browser/ui/views/tabs/tab_drag_controller.cc

Issue 23460016: Removes debugging code added @ 219682 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/ui/views/tabs/tab_drag_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller.cc b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
index 7ceb529be3ded59d679e6b2daa5f974741f046e8..ebb15ad8744bed4318a835d812bd629c93068ff1 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller.cc
@@ -10,7 +10,6 @@
#include "base/auto_reset.h"
#include "base/callback.h"
#include "base/command_line.h"
-#include "base/debug/alias.h"
#include "base/i18n/rtl.h"
#include "chrome/browser/chrome_notification_types.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
@@ -376,13 +375,11 @@ TabDragController::TabDragController()
tab_strip_to_attach_to_after_exit_(NULL),
move_loop_widget_(NULL),
destroyed_(NULL),
- is_mutating_(false),
- saving_focus_(false) {
+ is_mutating_(false) {
instance_ = this;
}
TabDragController::~TabDragController() {
- CHECK(!saving_focus_);
if (instance_ == this)
instance_ = NULL;
@@ -749,14 +746,6 @@ void TabDragController::SaveFocus() {
DCHECK(!old_focused_view_); // This should only be invoked once.
DCHECK(source_tabstrip_);
old_focused_view_ = source_tabstrip_->GetFocusManager()->GetFocusedView();
- // TODO(sky): used in tracking crash; see 275931.
- const char* old_focused_view_class_name =
- old_focused_view_ ? old_focused_view_->GetClassName() : NULL;
- base::debug::Alias(old_focused_view_class_name);
- const int old_focused_view_id =
- old_focused_view_ ? old_focused_view_->id() : 0;
- base::debug::Alias(&old_focused_view_id);
- base::AutoReset<bool> setter(&saving_focus_, true);
source_tabstrip_->GetFocusManager()->SetFocusedView(source_tabstrip_);
}
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_drag_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698