| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "chrome/browser/ui/views/frame/browser_root_view.h" |    5 #include "chrome/browser/ui/views/frame/browser_root_view.h" | 
|    6  |    6  | 
|    7 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |  | 
|    8 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |    7 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 
|    9 #include "chrome/browser/defaults.h" |    8 #include "chrome/browser/defaults.h" | 
|   10 #include "chrome/browser/profiles/profile.h" |    9 #include "chrome/browser/profiles/profile.h" | 
|   11 #include "chrome/browser/ui/browser_commands.h" |   10 #include "chrome/browser/ui/browser_commands.h" | 
|   12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |   11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 
|   13 #include "chrome/browser/ui/views/frame/browser_frame.h" |   12 #include "chrome/browser/ui/views/frame/browser_frame.h" | 
|   14 #include "chrome/browser/ui/views/frame/browser_view.h" |   13 #include "chrome/browser/ui/views/frame/browser_view.h" | 
|   15 #include "chrome/browser/ui/views/tabs/tab_strip.h" |   14 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 
|   16 #include "chrome/browser/ui/views/touch_uma/touch_uma.h" |   15 #include "chrome/browser/ui/views/touch_uma/touch_uma.h" | 
|   17 #include "components/metrics/proto/omnibox_event.pb.h" |   16 #include "components/metrics/proto/omnibox_event.pb.h" | 
 |   17 #include "components/omnibox/autocomplete_classifier.h" | 
|   18 #include "components/omnibox/autocomplete_match.h" |   18 #include "components/omnibox/autocomplete_match.h" | 
|   19 #include "ui/base/dragdrop/drag_drop_types.h" |   19 #include "ui/base/dragdrop/drag_drop_types.h" | 
|   20 #include "ui/base/dragdrop/os_exchange_data.h" |   20 #include "ui/base/dragdrop/os_exchange_data.h" | 
|   21 #include "ui/base/hit_test.h" |   21 #include "ui/base/hit_test.h" | 
|   22  |   22  | 
|   23 // static |   23 // static | 
|   24 const char BrowserRootView::kViewClassName[] = |   24 const char BrowserRootView::kViewClassName[] = | 
|   25     "browser/ui/views/frame/BrowserRootView"; |   25     "browser/ui/views/frame/BrowserRootView"; | 
|   26  |   26  | 
|   27 BrowserRootView::BrowserRootView(BrowserView* browser_view, |   27 BrowserRootView::BrowserRootView(BrowserView* browser_view, | 
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  204       browser_view_->browser()->profile())->Classify( |  204       browser_view_->browser()->profile())->Classify( | 
|  205           text, false, false, metrics::OmniboxEventProto::INVALID_SPEC, &match, |  205           text, false, false, metrics::OmniboxEventProto::INVALID_SPEC, &match, | 
|  206           nullptr); |  206           nullptr); | 
|  207   if (!match.destination_url.is_valid()) |  207   if (!match.destination_url.is_valid()) | 
|  208     return false; |  208     return false; | 
|  209  |  209  | 
|  210   if (url) |  210   if (url) | 
|  211     *url = match.destination_url; |  211     *url = match.destination_url; | 
|  212   return true; |  212   return true; | 
|  213 } |  213 } | 
| OLD | NEW |