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

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

Issue 808253006: Remove the GoogleURLTracker infobar functionality entirely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 11 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
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <sstream> 5 #include <sstream>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/histogram_base.h" 8 #include "base/metrics/histogram_base.h"
9 #include "base/metrics/histogram_samples.h" 9 #include "base/metrics/histogram_samples.h"
10 #include "base/metrics/statistics_recorder.h" 10 #include "base/metrics/statistics_recorder.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "chrome/browser/ui/tabs/tab_strip_model.h" 42 #include "chrome/browser/ui/tabs/tab_strip_model.h"
43 #include "chrome/browser/ui/webui/theme_source.h" 43 #include "chrome/browser/ui/webui/theme_source.h"
44 #include "chrome/common/chrome_switches.h" 44 #include "chrome/common/chrome_switches.h"
45 #include "chrome/common/instant_types.h" 45 #include "chrome/common/instant_types.h"
46 #include "chrome/common/url_constants.h" 46 #include "chrome/common/url_constants.h"
47 #include "chrome/test/base/in_process_browser_test.h" 47 #include "chrome/test/base/in_process_browser_test.h"
48 #include "chrome/test/base/interactive_test_utils.h" 48 #include "chrome/test/base/interactive_test_utils.h"
49 #include "chrome/test/base/ui_test_utils.h" 49 #include "chrome/test/base/ui_test_utils.h"
50 #include "components/bookmarks/browser/bookmark_utils.h" 50 #include "components/bookmarks/browser/bookmark_utils.h"
51 #include "components/bookmarks/test/bookmark_test_helpers.h" 51 #include "components/bookmarks/test/bookmark_test_helpers.h"
52 #include "components/google/core/browser/google_url_tracker.h"
53 #include "components/history/core/browser/history_db_task.h" 52 #include "components/history/core/browser/history_db_task.h"
54 #include "components/history/core/browser/history_types.h" 53 #include "components/history/core/browser/history_types.h"
55 #include "components/history/core/common/thumbnail_score.h" 54 #include "components/history/core/common/thumbnail_score.h"
56 #include "components/omnibox/autocomplete_match.h" 55 #include "components/omnibox/autocomplete_match.h"
57 #include "components/omnibox/autocomplete_provider.h" 56 #include "components/omnibox/autocomplete_provider.h"
58 #include "components/omnibox/autocomplete_result.h" 57 #include "components/omnibox/autocomplete_result.h"
59 #include "components/omnibox/omnibox_field_trial.h" 58 #include "components/omnibox/omnibox_field_trial.h"
60 #include "components/omnibox/search_provider.h" 59 #include "components/omnibox/search_provider.h"
61 #include "components/search_engines/template_url_service.h" 60 #include "components/search_engines/template_url_service.h"
62 #include "components/sessions/serialized_navigation_entry.h" 61 #include "components/sessions/serialized_navigation_entry.h"
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
969 stream << "link.href = \"" << result_url.spec() << "\";"; 968 stream << "link.href = \"" << result_url.spec() << "\";";
970 stream << "document.body.appendChild(link);"; 969 stream << "document.body.appendChild(link);";
971 stream << "link.click();"; 970 stream << "link.click();";
972 EXPECT_TRUE(content::ExecuteScript(contents, stream.str())); 971 EXPECT_TRUE(content::ExecuteScript(contents, stream.str()));
973 972
974 content::WaitForLoadStop(contents); 973 content::WaitForLoadStop(contents);
975 std::string expected_title = 974 std::string expected_title =
976 "Referrer is " + instant_url().GetWithEmptyPath().spec(); 975 "Referrer is " + instant_url().GetWithEmptyPath().spec();
977 EXPECT_EQ(ASCIIToUTF16(expected_title), contents->GetTitle()); 976 EXPECT_EQ(ASCIIToUTF16(expected_title), contents->GetTitle());
978 } 977 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698