refactor: remove InspectableWebContentsViewMac in favor of the Views version (#41326)
This commit is contained in:
parent
814ba71dc1
commit
e67ab9a93d
20 changed files with 304 additions and 956 deletions
|
@ -300,11 +300,6 @@ class InspectableWebContents::NetworkResourceLoader
|
|||
base::TimeDelta retry_delay_;
|
||||
};
|
||||
|
||||
// Implemented separately on each platform.
|
||||
InspectableWebContentsView* CreateInspectableContentsView(
|
||||
InspectableWebContents* inspectable_web_contents);
|
||||
|
||||
// static
|
||||
// static
|
||||
void InspectableWebContents::RegisterPrefs(PrefRegistrySimple* registry) {
|
||||
registry->RegisterDictionaryPref(kDevToolsBoundsPref,
|
||||
|
@ -320,7 +315,7 @@ InspectableWebContents::InspectableWebContents(
|
|||
: pref_service_(pref_service),
|
||||
web_contents_(std::move(web_contents)),
|
||||
is_guest_(is_guest),
|
||||
view_(CreateInspectableContentsView(this)) {
|
||||
view_(new InspectableWebContentsView(this)) {
|
||||
const base::Value* bounds_dict =
|
||||
&pref_service_->GetValue(kDevToolsBoundsPref);
|
||||
if (bounds_dict->is_dict()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue