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

Side by Side Diff: chrome/browser/site_details_browsertest.cc

Issue 2386503002: With --isolate-extensions, forking (via OpenURL) for extensions is not needed.
Patch Set: Rebasing... Created 3 years, 7 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/extensions/window_open_apitest.cc ('k') | chrome/common/BUILD.gn » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/site_details.h" 5 #include "chrome/browser/site_details.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <utility> 11 #include <utility>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/test/histogram_tester.h" 20 #include "base/test/histogram_tester.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/extensions/extension_browsertest.h" 22 #include "chrome/browser/extensions/extension_browsertest.h"
23 #include "chrome/browser/extensions/test_extension_dir.h" 23 #include "chrome/browser/extensions/test_extension_dir.h"
24 #include "chrome/browser/metrics/metrics_memory_details.h" 24 #include "chrome/browser/metrics/metrics_memory_details.h"
25 #include "chrome/browser/ui/browser.h" 25 #include "chrome/browser/ui/browser.h"
26 #include "chrome/browser/ui/tabs/tab_strip_model.h" 26 #include "chrome/browser/ui/tabs/tab_strip_model.h"
27 #include "chrome/common/extensions/extension_process_policy.h"
28 #include "chrome/common/url_constants.h" 27 #include "chrome/common/url_constants.h"
29 #include "chrome/test/base/in_process_browser_test.h" 28 #include "chrome/test/base/in_process_browser_test.h"
30 #include "chrome/test/base/ui_test_utils.h" 29 #include "chrome/test/base/ui_test_utils.h"
31 #include "components/metrics/metrics_service.h" 30 #include "components/metrics/metrics_service.h"
32 #include "components/variations/metrics_util.h" 31 #include "components/variations/metrics_util.h"
33 #include "content/public/browser/notification_service.h" 32 #include "content/public/browser/notification_service.h"
34 #include "content/public/browser/render_process_host.h" 33 #include "content/public/browser/render_process_host.h"
35 #include "content/public/common/content_switches.h" 34 #include "content/public/common/content_switches.h"
36 #include "content/public/test/browser_test_utils.h" 35 #include "content/public/test/browser_test_utils.h"
37 #include "content/public/test/test_utils.h" 36 #include "content/public/test/test_utils.h"
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 content::NavigateIframeToURL( 1217 content::NavigateIframeToURL(
1219 tab, "child-1", extension2->GetResourceURL("/blank_iframe.html")); 1218 tab, "child-1", extension2->GetResourceURL("/blank_iframe.html"));
1220 details = new TestMemoryDetails(); 1219 details = new TestMemoryDetails();
1221 details->StartFetchAndWait(); 1220 details->StartFetchAndWait();
1222 EXPECT_THAT(details->uma()->GetAllSamples( 1221 EXPECT_THAT(details->uma()->GetAllSamples(
1223 "SiteIsolation.SiteInstancesPerBrowsingInstance"), 1222 "SiteIsolation.SiteInstancesPerBrowsingInstance"),
1224 DependingOnPolicy(ElementsAre(Bucket(1, 2)), 1223 DependingOnPolicy(ElementsAre(Bucket(1, 2)),
1225 ElementsAre(Bucket(1, 1), Bucket(3, 1)), 1224 ElementsAre(Bucket(1, 1), Bucket(3, 1)),
1226 ElementsAre(Bucket(1, 1), Bucket(5, 1)))); 1225 ElementsAre(Bucket(1, 1), Bucket(5, 1))));
1227 } 1226 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/window_open_apitest.cc ('k') | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698