-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[omnibox] Exports action_info.proto to Chrome
Also moves chrome_searchbox_stats.proto from //third_party/metrics_proto/ to //third_party/omnibox_proto/ now that omnibox has a bunch more protos. Bug: 1418077 Change-Id: Idd3a14573f09cfc5a94a6e0d74383be2c1c5286e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4347796 Reviewed-by: Mark Pearson <mpearson@chromium.org> Reviewed-by: Tomasz Wiszkowski <ender@google.com> Commit-Queue: Moe Ahmadi <mahmadi@chromium.org> Cr-Commit-Position: refs/heads/main@{#1119659}
- Loading branch information
Showing
17 changed files
with
110 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,24 @@ | ||
// Copyright 2023 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef COMPONENTS_OMNIBOX_BROWSER_PAGE_CLASSIFICATION_FUNCTIONS_H_ | ||
#define COMPONENTS_OMNIBOX_BROWSER_PAGE_CLASSIFICATION_FUNCTIONS_H_ | ||
|
||
#include "third_party/metrics_proto/omnibox_event.pb.h" | ||
|
||
namespace omnibox { | ||
// Return true, if supplied page classification is a new tab page. | ||
bool IsNTPPage(metrics::OmniboxEventProto::PageClassification classification); | ||
bool IsNTPPage(::metrics::OmniboxEventProto::PageClassification classification); | ||
|
||
// Return true, if supplied page classification is a search results page. | ||
bool IsSearchResultsPage( | ||
metrics::OmniboxEventProto::PageClassification classification); | ||
::metrics::OmniboxEventProto::PageClassification classification); | ||
|
||
// Return true, if supplied page classification is neither a new tab page or | ||
// search results page. | ||
bool IsOtherWebPage( | ||
metrics::OmniboxEventProto::PageClassification classification); | ||
::metrics::OmniboxEventProto::PageClassification classification); | ||
} // namespace omnibox | ||
|
||
#endif // COMPONENTS_OMNIBOX_BROWSER_PAGE_CLASSIFICATION_FUNCTIONS_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.