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

Side by Side Diff: chrome/browser/ui/search/instant_controller.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (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 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/search/instant_controller.h" 5 #include "chrome/browser/ui/search/instant_controller.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 tab2->GetController().GetSessionStorageNamespaceMap(); 119 tab2->GetController().GetSessionStorageNamespaceMap();
120 bool is_session_storage_the_same = 120 bool is_session_storage_the_same =
121 session_storage_map1.size() == session_storage_map2.size(); 121 session_storage_map1.size() == session_storage_map2.size();
122 if (is_session_storage_the_same) { 122 if (is_session_storage_the_same) {
123 // The size is the same, so let's check that all entries match. 123 // The size is the same, so let's check that all entries match.
124 for (content::SessionStorageNamespaceMap::const_iterator 124 for (content::SessionStorageNamespaceMap::const_iterator
125 it1 = session_storage_map1.begin(), 125 it1 = session_storage_map1.begin(),
126 it2 = session_storage_map2.begin(); 126 it2 = session_storage_map2.begin();
127 it1 != session_storage_map1.end() && it2 != session_storage_map2.end(); 127 it1 != session_storage_map1.end() && it2 != session_storage_map2.end();
128 ++it1, ++it2) { 128 ++it1, ++it2) {
129 if (it1->first != it2->first || it1->second != it2->second) { 129 if (it1->first != it2->first || it1->second.get() != it2->second.get()) {
130 is_session_storage_the_same = false; 130 is_session_storage_the_same = false;
131 break; 131 break;
132 } 132 }
133 } 133 }
134 } 134 }
135 histogram->AddBoolean(is_session_storage_the_same); 135 histogram->AddBoolean(is_session_storage_the_same);
136 } 136 }
137 137
138 string16 Normalize(const string16& str) { 138 string16 Normalize(const string16& str) {
139 UErrorCode status = U_ZERO_ERROR; 139 UErrorCode status = U_ZERO_ERROR;
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 result->transition = match.transition; 1886 result->transition = match.transition;
1887 result->relevance = match.relevance; 1887 result->relevance = match.relevance;
1888 result->autocomplete_match_index = autocomplete_match_index; 1888 result->autocomplete_match_index = autocomplete_match_index;
1889 1889
1890 DVLOG(1) << " " << result->relevance << " " 1890 DVLOG(1) << " " << result->relevance << " "
1891 << UTF8ToUTF16(AutocompleteMatchType::ToString(result->type)) << " " 1891 << UTF8ToUTF16(AutocompleteMatchType::ToString(result->type)) << " "
1892 << result->provider << " " << result->destination_url << " '" 1892 << result->provider << " " << result->destination_url << " '"
1893 << result->description << "' '" << result->search_query << "' " 1893 << result->description << "' '" << result->search_query << "' "
1894 << result->transition << " " << result->autocomplete_match_index; 1894 << result->transition << " " << result->autocomplete_match_index;
1895 } 1895 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browsertest.cc ('k') | chrome/browser/ui/search/instant_extended_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698