summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete.h
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 22:23:20 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-05 22:23:20 +0000
commit225c8f507421a2eff2ed7a900104431d04ed7e5e (patch)
tree770b7081fc8f2a15abe4635938e03550f010a526 /chrome/browser/autocomplete/autocomplete.h
parentf3f0c05dfbcbfec2ecbb79ba9bab6ffc8f93ea32 (diff)
downloadchromium_src-225c8f507421a2eff2ed7a900104431d04ed7e5e.zip
chromium_src-225c8f507421a2eff2ed7a900104431d04ed7e5e.tar.gz
chromium_src-225c8f507421a2eff2ed7a900104431d04ed7e5e.tar.bz2
linux: build with -Wextra
95% of this is removing "const" from return types, but turning this on found one bug! (A "for" loop that expected its iterator to go negative but which was using an unsigned type.) BUG=34160 Review URL: http://codereview.chromium.org/570012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/autocomplete.h b/chrome/browser/autocomplete/autocomplete.h
index f7de326..d64fd6c 100644
--- a/chrome/browser/autocomplete/autocomplete.h
+++ b/chrome/browser/autocomplete/autocomplete.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -233,19 +233,19 @@ class AutocompleteInput {
const GURL& canonicalized_url() const { return canonicalized_url_; }
// Returns whether inline autocompletion should be prevented.
- const bool prevent_inline_autocomplete() const {
+ bool prevent_inline_autocomplete() const {
return prevent_inline_autocomplete_;
}
// Returns whether, given an input string consisting solely of a substituting
// keyword, we should score it like a non-substituting keyword.
- const bool prefer_keyword() const { return prefer_keyword_; }
+ bool prefer_keyword() const { return prefer_keyword_; }
// Returns whether providers should avoid scheduling asynchronous work. If
// this is true, providers should stop after returning all the
// synchronously-available matches. This also means any in-progress
// asynchronous work should be canceled, so no later callbacks are fired.
- const bool synchronous_only() const { return synchronous_only_; }
+ bool synchronous_only() const { return synchronous_only_; }
// operator==() by another name.
bool Equals(const AutocompleteInput& other) const;
@@ -778,7 +778,7 @@ class AutocompleteController : public ACProviderListener {
// This next is temporary and should go away when
// AutocompletePopup::URLsForCurrentSelection() moves to the controller.
const AutocompleteResult& latest_result() const { return latest_result_; }
- const bool done() const { return done_ && !update_delay_timer_.IsRunning(); }
+ bool done() const { return done_ && !update_delay_timer_.IsRunning(); }
// From AutocompleteProvider::Listener
virtual void OnProviderUpdate(bool updated_matches);