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

Side by Side Diff: chrome/browser/ui/search/search_tab_helper.cc

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/search/search_tab_helper.h" 5 #include "chrome/browser/ui/search/search_tab_helper.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 25 matching lines...) Expand all
36 #include "components/search/search.h" 36 #include "components/search/search.h"
37 #include "components/signin/core/browser/signin_manager.h" 37 #include "components/signin/core/browser/signin_manager.h"
38 #include "components/strings/grit/components_strings.h" 38 #include "components/strings/grit/components_strings.h"
39 #include "content/public/browser/navigation_details.h" 39 #include "content/public/browser/navigation_details.h"
40 #include "content/public/browser/navigation_entry.h" 40 #include "content/public/browser/navigation_entry.h"
41 #include "content/public/browser/navigation_handle.h" 41 #include "content/public/browser/navigation_handle.h"
42 #include "content/public/browser/notification_service.h" 42 #include "content/public/browser/notification_service.h"
43 #include "content/public/browser/notification_source.h" 43 #include "content/public/browser/notification_source.h"
44 #include "content/public/browser/render_frame_host.h" 44 #include "content/public/browser/render_frame_host.h"
45 #include "content/public/browser/render_process_host.h" 45 #include "content/public/browser/render_process_host.h"
46 #include "content/public/browser/user_metrics.h"
47 #include "content/public/browser/web_contents.h" 46 #include "content/public/browser/web_contents.h"
48 #include "content/public/common/browser_side_navigation_policy.h" 47 #include "content/public/common/browser_side_navigation_policy.h"
49 #include "content/public/common/referrer.h" 48 #include "content/public/common/referrer.h"
50 #include "google_apis/gaia/gaia_auth_util.h" 49 #include "google_apis/gaia/gaia_auth_util.h"
51 #include "net/base/net_errors.h" 50 #include "net/base/net_errors.h"
52 #include "ui/base/l10n/l10n_util.h" 51 #include "ui/base/l10n/l10n_util.h"
53 #include "ui/base/page_transition_types.h" 52 #include "ui/base/page_transition_types.h"
54 #include "url/gurl.h" 53 #include "url/gurl.h"
55 54
56 DEFINE_WEB_CONTENTS_USER_DATA_KEY(SearchTabHelper); 55 DEFINE_WEB_CONTENTS_USER_DATA_KEY(SearchTabHelper);
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 return Profile::FromBrowserContext(web_contents_->GetBrowserContext()); 533 return Profile::FromBrowserContext(web_contents_->GetBrowserContext());
535 } 534 }
536 535
537 bool SearchTabHelper::IsInputInProgress() const { 536 bool SearchTabHelper::IsInputInProgress() const {
538 if (model_.mode().is_ntp()) 537 if (model_.mode().is_ntp())
539 return false; 538 return false;
540 const OmniboxView* omnibox_view = GetOmniboxView(); 539 const OmniboxView* omnibox_view = GetOmniboxView();
541 return omnibox_view && 540 return omnibox_view &&
542 omnibox_view->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE; 541 omnibox_view->model()->focus_state() == OMNIBOX_FOCUS_VISIBLE;
543 } 542 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698