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

Unified Diff: chrome/browser/tab_contents/navigation_controller.cc

Issue 6369003: New extension API: "tab.socketAddress" (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/navigation_controller.cc
===================================================================
--- chrome/browser/tab_contents/navigation_controller.cc (revision 71766)
+++ chrome/browser/tab_contents/navigation_controller.cc (working copy)
@@ -560,6 +560,9 @@
NOTREACHED();
}
+ // Capture the latest socket address for every page load.
+ GetActiveEntry()->set_socket_address(params.socket_address);
+
// All committed entries should have nonempty content state so WebKit doesn't
// get confused when we go back to them (see the function for details).
SetContentStateIfEmpty(GetActiveEntry());

Powered by Google App Engine
This is Rietveld 408576698