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

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: 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
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..1ad40db5e0b76ed7683a5431325307d5244ed8dd 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() ?
Peter Kasting 2013/06/18 23:31:19 Nit: Parens around comparison
beaudoin 2013/06/19 18:21:10 Done.
+ 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();
}

Powered by Google App Engine
This is Rietveld 408576698