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

Unified Diff: chrome/browser/ui/cocoa/view_id_util.mm

Issue 1393233002: Mac Energy Test Harness/Framework Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Snapshot of scripts for http://crbug.com/391646 Created 5 years, 2 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 | « base/test/energy_monitor_mac.cc ('k') | chrome/browser/ui/energy_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/view_id_util.mm
diff --git a/chrome/browser/ui/cocoa/view_id_util.mm b/chrome/browser/ui/cocoa/view_id_util.mm
index 6dd19ada9446ddcd3a0825dc8d061254d930b300..b55f695adab0e948e8e97cea68005722c405eb52 100644
--- a/chrome/browser/ui/cocoa/view_id_util.mm
+++ b/chrome/browser/ui/cocoa/view_id_util.mm
@@ -60,6 +60,7 @@ NSView* GetView(NSWindow* window, ViewID viewID) {
// As tabs can be created, destroyed or rearranged dynamically, we handle them
// here specially.
+#if 0
if (viewID >= VIEW_ID_TAB_0 && viewID <= VIEW_ID_TAB_LAST) {
BrowserWindowController* windowController = [window windowController];
DCHECK([windowController isKindOfClass:[BrowserWindowController class]]);
@@ -72,6 +73,7 @@ NSView* GetView(NSWindow* window, ViewID viewID) {
(viewID == VIEW_ID_TAB_LAST ? count - 1 : viewID - VIEW_ID_TAB_0);
return index < count ? [tabStripController viewAtIndex:index] : nil;
}
+#endif
return FindViewWithID([[window contentView] superview], viewID);
}
« no previous file with comments | « base/test/energy_monitor_mac.cc ('k') | chrome/browser/ui/energy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698