Index: chrome/renderer/frame_sniffer.cc |
diff --git a/chrome/renderer/frame_sniffer.cc b/chrome/renderer/frame_sniffer.cc |
index 4546b680c02f95b04f443d7981d007417e33b867..20844b23432d235776e2762b661efbc27c903f55 100644 |
--- a/chrome/renderer/frame_sniffer.cc |
+++ b/chrome/renderer/frame_sniffer.cc |
@@ -10,8 +10,9 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLError.h" |
FrameSniffer::FrameSniffer(content::RenderView* render_view, |
- const string16 &frame_name) |
- : content::RenderViewObserver(render_view), frame_name_(frame_name) { |
+ const string16 &unique_frame_name) |
+ : content::RenderViewObserver(render_view), |
+ unique_frame_name_(unique_frame_name) { |
} |
FrameSniffer::~FrameSniffer() { |
@@ -32,5 +33,5 @@ void FrameSniffer::DidCommitProvisionalLoad(WebKit::WebFrame* frame, |
} |
bool FrameSniffer::ShouldSniffFrame(WebKit::WebFrame* frame) { |
- return frame->name() == frame_name_; |
+ return frame->uniqueName() == unique_frame_name_; |
} |