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

Side by Side Diff: components/omnibox/browser/omnibox_edit_model.cc

Issue 2293583002: Change includes of histogram.h to histogram_macros.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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 "components/omnibox/browser/omnibox_edit_model.h" 5 #include "components/omnibox/browser/omnibox_edit_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/auto_reset.h" 11 #include "base/auto_reset.h"
12 #include "base/format_macros.h" 12 #include "base/format_macros.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "base/metrics/user_metrics.h" 15 #include "base/metrics/user_metrics.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "base/strings/utf_string_conversions.h" 19 #include "base/strings/utf_string_conversions.h"
20 #include "components/bookmarks/browser/bookmark_model.h" 20 #include "components/bookmarks/browser/bookmark_model.h"
21 #include "components/metrics/proto/omnibox_event.pb.h" 21 #include "components/metrics/proto/omnibox_event.pb.h"
22 #include "components/omnibox/browser/autocomplete_classifier.h" 22 #include "components/omnibox/browser/autocomplete_classifier.h"
23 #include "components/omnibox/browser/autocomplete_match_type.h" 23 #include "components/omnibox/browser/autocomplete_match_type.h"
24 #include "components/omnibox/browser/autocomplete_provider.h" 24 #include "components/omnibox/browser/autocomplete_provider.h"
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 // Update state and notify view if the omnibox has focus and the caret 1502 // Update state and notify view if the omnibox has focus and the caret
1503 // visibility changed. 1503 // visibility changed.
1504 const bool was_caret_visible = is_caret_visible(); 1504 const bool was_caret_visible = is_caret_visible();
1505 focus_state_ = state; 1505 focus_state_ = state;
1506 if (focus_state_ != OMNIBOX_FOCUS_NONE && 1506 if (focus_state_ != OMNIBOX_FOCUS_NONE &&
1507 is_caret_visible() != was_caret_visible) 1507 is_caret_visible() != was_caret_visible)
1508 view_->ApplyCaretVisibility(); 1508 view_->ApplyCaretVisibility();
1509 1509
1510 client_->OnFocusChanged(focus_state_, reason); 1510 client_->OnFocusChanged(focus_state_, reason);
1511 } 1511 }
OLDNEW
« no previous file with comments | « components/omnibox/browser/history_url_provider.cc ('k') | components/omnibox/browser/url_index_private_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698