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

Unified Diff: chrome/browser/extensions/api/tabs/windows_event_router.cc

Issue 1991083002: Remove ExtensionFunction::SetResult(T*) overload. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 4 years, 7 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/extensions/api/tabs/windows_event_router.cc
diff --git a/chrome/browser/extensions/api/tabs/windows_event_router.cc b/chrome/browser/extensions/api/tabs/windows_event_router.cc
index ba1f49c6746f6a3b6f2535bccd1e3216537cc6c6..6c0251f4da0ef443a5d02b0f0c8013749810f654 100644
--- a/chrome/browser/extensions/api/tabs/windows_event_router.cc
+++ b/chrome/browser/extensions/api/tabs/windows_event_router.cc
@@ -196,9 +196,7 @@ void WindowsEventRouter::OnWindowControllerAdded(
return;
std::unique_ptr<base::ListValue> args(new base::ListValue());
- base::DictionaryValue* window_dictionary =
- window_controller->CreateWindowValue();
- args->Append(window_dictionary);
+ args->Append(window_controller->CreateWindowValue());
DispatchEvent(events::WINDOWS_ON_CREATED, windows::OnCreated::kEventName,
window_controller, std::move(args));
}

Powered by Google App Engine
This is Rietveld 408576698