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

Unified Diff: chrome/browser/autocomplete/autocomplete_result.cc

Issue 17426004: Minor cosmetic changes to OmniboxEditModel and OmniboxController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Answered Peter Created 7 years, 6 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/autocomplete/autocomplete_result.h ('k') | chrome/browser/ui/omnibox/omnibox_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_result.cc
diff --git a/chrome/browser/autocomplete/autocomplete_result.cc b/chrome/browser/autocomplete/autocomplete_result.cc
index c723d3f4d47e5b5b14f3c8c99b2aca63c2595fa0..38a0edf3e07bbe4c22acdb5dc3e4a17e5512a123 100644
--- a/chrome/browser/autocomplete/autocomplete_result.cc
+++ b/chrome/browser/autocomplete/autocomplete_result.cc
@@ -134,8 +134,8 @@ void AutocompleteResult::SortAndCull(const AutocompleteInput& input,
default_match_ = begin();
// Set the alternate nav URL.
- alternate_nav_url_ = default_match_ == end() ? GURL() :
- ComputeAlternateNavUrl(input, *default_match_);
+ alternate_nav_url_ = (default_match_ == end()) ?
+ GURL() : ComputeAlternateNavUrl(input, *default_match_);
}
bool AutocompleteResult::HasCopiedMatches() const {
@@ -207,10 +207,10 @@ void AutocompleteResult::Validate() const {
GURL AutocompleteResult::ComputeAlternateNavUrl(
const AutocompleteInput& input,
const AutocompleteMatch& match) {
- return (input.type() == AutocompleteInput::UNKNOWN &&
- AutocompleteMatch::IsSearchType(match.type) &&
- match.transition != content::PAGE_TRANSITION_KEYWORD &&
- input.canonicalized_url() != match.destination_url) ?
+ return ((input.type() == AutocompleteInput::UNKNOWN) &&
+ (AutocompleteMatch::IsSearchType(match.type)) &&
+ (match.transition != content::PAGE_TRANSITION_KEYWORD) &&
+ (input.canonicalized_url() != match.destination_url)) ?
input.canonicalized_url() : GURL();
}
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_result.h ('k') | chrome/browser/ui/omnibox/omnibox_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698