Skip to content

Commit 0805033

Browse files
committed
Minor cleanup
1 parent 019883d commit 0805033

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

CefSharp.OutOfProcess.BrowserProcess/OutOfProcessChromiumWebBrowser.cs

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ void IWebBrowserInternal.OnAfterBrowserCreated(IBrowser browser)
333333
return;
334334
}
335335

336-
this._browser = browser;
336+
_browser = browser;
337337
BrowserCore = browser;
338338
Interlocked.Exchange(ref _browserInitialized, 1);
339339

@@ -610,7 +610,7 @@ public OutOfProcessChromiumWebBrowser(IOutOfProcessHostRpc outOfProcessServer, i
610610
{
611611
_id = id;
612612
RequestContext = requestContext;
613-
this._outofProcessHostRpc = outOfProcessServer;
613+
_outofProcessHostRpc = outOfProcessServer;
614614

615615
Cef.AddDisposable(this);
616616
Address = address;
@@ -743,25 +743,7 @@ public void CreateBrowser(IWindowInfo windowInfo = null, IBrowserSettings browse
743743
/// <inheritdoc/>
744744
public void Load(string url)
745745
{
746-
if (IsDisposed)
747-
{
748-
return;
749-
}
750-
751-
//There's a small window here between CreateBrowser
752-
//and OnAfterBrowserCreated where the Address prop
753-
//will be updated, though LoadUrl won't be called.
754-
if (IsBrowserInitialized)
755-
{
756-
using (var frame = this.GetMainFrame())
757-
{
758-
frame.LoadUrl(url);
759-
}
760-
}
761-
else
762-
{
763-
Address = url;
764-
}
746+
throw new NotImplementedException();
765747
}
766748

767749
/// <summary>

0 commit comments

Comments
 (0)