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

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

Issue 274059: Small cleanup to extension function registration to avoid scattered definitions. (Closed)
Patch Set: Created 11 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/execute_code_in_tab_function.cc
diff --git a/chrome/browser/extensions/execute_code_in_tab_function.cc b/chrome/browser/extensions/execute_code_in_tab_function.cc
index 8827c5c698606d763d57103c926436c4f7ab91aa..989d5f2ac549e84dc5bb72bb2ac50d0ef03d820a 100755
--- a/chrome/browser/extensions/execute_code_in_tab_function.cc
+++ b/chrome/browser/extensions/execute_code_in_tab_function.cc
@@ -124,9 +124,9 @@ void ExecuteCodeInTabFunction::Execute(const std::string& code_string) {
bool is_js_code = true;
std::string function_name = name();
- if (function_name == keys::kInsertCSSFunction) {
+ if (function_name == TabsInsertCSSFunction::function_name()) {
is_js_code = false;
- } else if (function_name != keys::kExecuteScriptFunction) {
+ } else if (function_name != TabsExecuteScriptFunction::function_name()) {
DCHECK(false);
}
registrar_.Add(this, NotificationType::TAB_CODE_EXECUTED,

Powered by Google App Engine
This is Rietveld 408576698