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

Unified Diff: chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc

Issue 1661423002: Solidify Entry discarding logic (NavigationHandle keeps its ID) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge @377292 Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc
diff --git a/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc b/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc
index 2a54f7fe14536627973fc33f32dbc6a56b993ab1..8e9bbe1a28430ae35859e7cc7f412f7a61283ba7 100644
--- a/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc
+++ b/chrome/browser/ui/content_settings/content_setting_bubble_model_browsertest.cc
@@ -135,10 +135,17 @@ IN_PROC_BROWSER_TEST_F(ContentSettingBubbleModelMediaStreamTest, ManageLink) {
EXPECT_EQ(GURL("chrome://settings/contentExceptions#media-stream-mic"),
GetActiveTab()->GetLastCommittedURL());
+ // In ChromeOS, we do not sanitize chrome://settings-frame to
+ // chrome://settings for same-document navigations. See crbug.com/416157.
// The camera bubble links to camera exceptions.
+ GURL camera_url =
+#if defined(OS_CHROMEOS)
+ GURL("chrome://settings-frame/contentExceptions#media-stream-camera");
Bernhard Bauer 2016/02/25 09:32:43 Why do we not do this for microphone?
Charlie Harrison 2016/02/25 13:24:17 I'm not 100% sure of why the bug happens, but the
Bernhard Bauer 2016/02/25 13:47:07 I think that would be good. You could also navigat
+#else
+ GURL("chrome://settings/contentExceptions#media-stream-camera");
+#endif
ManageMediaStreamSettings(TabSpecificContentSettings::CAMERA_ACCESSED);
- EXPECT_EQ(GURL("chrome://settings/contentExceptions#media-stream-camera"),
- GetActiveTab()->GetLastCommittedURL());
+ EXPECT_EQ(camera_url, GetActiveTab()->GetLastCommittedURL());
// The bubble for both media devices links to the the first section of the
// default media content settings, which is the microphone section.
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_controller_impl.cc » ('j') | content/browser/frame_host/navigator_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698