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

Unified Diff: chrome/browser/extensions/chrome_extension_function.cc

Issue 2386823002: [Extensions] Remove ExtensionFunction::SetError() (Closed)
Patch Set: lazyboy's Created 4 years, 2 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/chrome_extension_function.cc
diff --git a/chrome/browser/extensions/chrome_extension_function.cc b/chrome/browser/extensions/chrome_extension_function.cc
index d71673a0b44ad92500794f220feaf1e0126605e5..f0f0cfd8890999724827b521229449805ff4bf22 100644
--- a/chrome/browser/extensions/chrome_extension_function.cc
+++ b/chrome/browser/extensions/chrome_extension_function.cc
@@ -37,15 +37,15 @@ ChromeUIThreadExtensionFunction::GetExtensionWindowController() {
return chrome_details_.GetExtensionWindowController();
}
+void ChromeUIThreadExtensionFunction::SetError(const std::string& error) {
+ error_ = error;
+}
+
content::WebContents*
ChromeUIThreadExtensionFunction::GetAssociatedWebContents() {
return chrome_details_.GetAssociatedWebContents();
}
-void ChromeUIThreadExtensionFunction::SetError(const std::string& error) {
- error_ = error;
-}
-
const std::string& ChromeUIThreadExtensionFunction::GetError() const {
return error_.empty() ? UIThreadExtensionFunction::GetError() : error_;
}
« no previous file with comments | « chrome/browser/extensions/chrome_extension_function.h ('k') | chrome/test/data/extensions/api_test/input_ime/background.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698