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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_model_impl.cc

Issue 415073003: Move omnibox icons to components (1/2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Autocomplete -> Omnibox Created 6 years, 5 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 | Annotate | Revision Log
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 "chrome/browser/ui/toolbar/toolbar_model_impl.h" 5 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/autocomplete/autocomplete_classifier.h" 10 #include "chrome/browser/autocomplete/autocomplete_classifier.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/common/url_constants.h" 21 #include "chrome/common/url_constants.h"
22 #include "components/autocomplete/autocomplete_input.h" 22 #include "components/autocomplete/autocomplete_input.h"
23 #include "components/google/core/browser/google_util.h" 23 #include "components/google/core/browser/google_util.h"
24 #include "content/public/browser/cert_store.h" 24 #include "content/public/browser/cert_store.h"
25 #include "content/public/browser/navigation_controller.h" 25 #include "content/public/browser/navigation_controller.h"
26 #include "content/public/browser/navigation_entry.h" 26 #include "content/public/browser/navigation_entry.h"
27 #include "content/public/browser/web_contents.h" 27 #include "content/public/browser/web_contents.h"
28 #include "content/public/browser/web_ui.h" 28 #include "content/public/browser/web_ui.h"
29 #include "content/public/common/content_constants.h" 29 #include "content/public/common/content_constants.h"
30 #include "content/public/common/ssl_status.h" 30 #include "content/public/common/ssl_status.h"
31 #include "grit/component_scaled_resources.h"
31 #include "grit/generated_resources.h" 32 #include "grit/generated_resources.h"
32 #include "grit/theme_resources.h" 33 #include "grit/theme_resources.h"
33 #include "net/base/net_util.h" 34 #include "net/base/net_util.h"
34 #include "net/cert/cert_status_flags.h" 35 #include "net/cert/cert_status_flags.h"
35 #include "net/cert/x509_certificate.h" 36 #include "net/cert/x509_certificate.h"
36 #include "ui/base/l10n/l10n_util.h" 37 #include "ui/base/l10n/l10n_util.h"
37 38
38 #if defined(OS_CHROMEOS) 39 #if defined(OS_CHROMEOS)
39 #include "chrome/browser/chromeos/policy/policy_cert_service.h" 40 #include "chrome/browser/chromeos/policy/policy_cert_service.h"
40 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h" 41 #include "chrome/browser/chromeos/policy/policy_cert_service_factory.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 if (entry && 329 if (entry &&
329 google_util::StartsWithCommandLineGoogleBaseURL(entry->GetVirtualURL())) 330 google_util::StartsWithCommandLineGoogleBaseURL(entry->GetVirtualURL()))
330 return search_terms; 331 return search_terms;
331 332
332 // Otherwise, extract search terms for HTTPS pages that do not have a security 333 // Otherwise, extract search terms for HTTPS pages that do not have a security
333 // error. 334 // error.
334 ToolbarModel::SecurityLevel security_level = GetSecurityLevel(ignore_editing); 335 ToolbarModel::SecurityLevel security_level = GetSecurityLevel(ignore_editing);
335 return ((security_level == NONE) || (security_level == SECURITY_ERROR)) ? 336 return ((security_level == NONE) || (security_level == SECURITY_ERROR)) ?
336 base::string16() : search_terms; 337 base::string16() : search_terms;
337 } 338 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view.cc ('k') | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698