summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/extensions')
-rw-r--r--chrome/common/extensions/extension.cc2
-rw-r--r--chrome/common/extensions/extension.h2
-rw-r--r--chrome/common/extensions/extension_error_reporter.h8
-rw-r--r--chrome/common/extensions/extension_error_utils.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 87ab9b6..1a665d4 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -330,7 +330,7 @@ bool Extension::LoadGlobsHelper(
int content_script_index,
const wchar_t* globs_property_name,
std::string* error,
- void (UserScript::*add_method) (const std::string& glob),
+ void(UserScript::*add_method)(const std::string& glob),
UserScript *instance) {
if (!content_script->HasKey(globs_property_name))
return true; // they are optional
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 24afa3a..8cd5da3 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -302,7 +302,7 @@ class Extension {
int content_script_index,
const wchar_t* globs_property_name,
std::string* error,
- void (UserScript::*add_method) (const std::string& glob),
+ void(UserScript::*add_method)(const std::string& glob),
UserScript *instance);
// Helper method to load an ExtensionAction from the page_action or
diff --git a/chrome/common/extensions/extension_error_reporter.h b/chrome/common/extensions/extension_error_reporter.h
index aa17205..60d6af3 100644
--- a/chrome/common/extensions/extension_error_reporter.h
+++ b/chrome/common/extensions/extension_error_reporter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_COMMON_EXTENSIONS_ERROR_REPORTER_H_
-#define CHROME_COMMON_EXTENSIONS_ERROR_REPORTER_H_
+#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_
+#define CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_
#include <string>
#include <vector>
@@ -40,11 +40,11 @@ class ExtensionErrorReporter {
private:
static ExtensionErrorReporter* instance_;
- ExtensionErrorReporter(bool enable_noisy_errors);
+ explicit ExtensionErrorReporter(bool enable_noisy_errors);
MessageLoop* ui_loop_;
std::vector<std::string> errors_;
bool enable_noisy_errors_;
};
-#endif // CHROME_COMMON_EXTENSIONS_ERROR_REPORTER_H_
+#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_ERROR_REPORTER_H_
diff --git a/chrome/common/extensions/extension_error_utils.h b/chrome/common/extensions/extension_error_utils.h
index fdd9b03..54db8ba 100644
--- a/chrome/common/extensions/extension_error_utils.h
+++ b/chrome/common/extensions/extension_error_utils.h
@@ -8,7 +8,7 @@
#include <string>
class ExtensionErrorUtils {
-public:
+ public:
// Creates an error messages from a pattern.
static std::string FormatErrorMessage(const std::string& format,
const std::string& s1);