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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_api.cc

Issue 10701012: JSON Schema Compiler: Added event compilation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Synced. Created 8 years, 5 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
« no previous file with comments | « chrome/browser/extensions/api/usb/usb_api.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
diff --git a/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc b/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
index 6ce004363506e563ed12022857eae326f71ec738..a75bc4c1f901d09779b298d02c34cf52fc729d94 100644
--- a/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
+++ b/chrome/browser/extensions/api/web_navigation/web_navigation_api.cc
@@ -822,11 +822,11 @@ bool GetFrameFunction::RunImpl() {
if (!frame_navigation_state.IsValidUrl(frame_url))
return true;
- GetFrame::Result::Details frame_details;
+ GetFrame::Results::Details frame_details;
frame_details.url = frame_url.spec();
frame_details.error_occurred =
frame_navigation_state.GetErrorOccurredInFrame(frame_id);
- SetResult(GetFrame::Result::Create(frame_details));
+ results_ = GetFrame::Results::Create(frame_details);
return true;
}
@@ -856,22 +856,22 @@ bool GetAllFramesFunction::RunImpl() {
const FrameNavigationState& navigation_state =
observer->frame_navigation_state();
- std::vector<linked_ptr<GetAllFrames::Result::DetailsElement> > result_list;
+ std::vector<linked_ptr<GetAllFrames::Results::DetailsElement> > result_list;
for (FrameNavigationState::const_iterator it = navigation_state.begin();
it != navigation_state.end(); ++it) {
int64 frame_id = *it;
GURL frame_url = navigation_state.GetUrl(frame_id);
if (!navigation_state.IsValidUrl(frame_url))
continue;
- linked_ptr<GetAllFrames::Result::DetailsElement> frame(
- new GetAllFrames::Result::DetailsElement());
+ linked_ptr<GetAllFrames::Results::DetailsElement> frame(
+ new GetAllFrames::Results::DetailsElement());
frame->url = frame_url.spec();
frame->frame_id = GetFrameId(navigation_state.IsMainFrame(frame_id),
frame_id);
frame->error_occurred = navigation_state.GetErrorOccurredInFrame(frame_id);
result_list.push_back(frame);
}
- SetResult(GetAllFrames::Result::Create(result_list));
+ results_ = GetAllFrames::Results::Create(result_list);
return true;
}
« no previous file with comments | « chrome/browser/extensions/api/usb/usb_api.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698