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

Unified Diff: chrome/browser/extensions/startup_helper.h

Issue 10824204: Move small c/b/extensions classes into extensions namespace no.2 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 4 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/startup_helper.h
diff --git a/chrome/browser/extensions/extensions_startup.h b/chrome/browser/extensions/startup_helper.h
similarity index 67%
rename from chrome/browser/extensions/extensions_startup.h
rename to chrome/browser/extensions/startup_helper.h
index ba2d3752a671425ab4bdecc09a76046a2cf74c15..f4aedc4837902e0999a42de80dd6d278fc70580b 100644
--- a/chrome/browser/extensions/extensions_startup.h
+++ b/chrome/browser/extensions/startup_helper.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_BROWSER_EXTENSIONS_EXTENSIONS_STARTUP_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSIONS_STARTUP_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_STARTUP_HELPER_H_
+#define CHROME_BROWSER_EXTENSIONS_STARTUP_HELPER_H_
#include "base/memory/ref_counted.h"
#include "chrome/browser/extensions/pack_extension_job.h"
@@ -11,17 +11,18 @@
class CommandLine;
class Profile;
+namespace extensions {
+
// Initialization helpers for various Extension startup actions.
-class ExtensionsStartupUtil : public PackExtensionJob::Client {
+class StartupHelper : public PackExtensionJob::Client {
public:
- ExtensionsStartupUtil();
- virtual ~ExtensionsStartupUtil();
+ StartupHelper();
+ virtual ~StartupHelper();
virtual void OnPackSuccess(const FilePath& crx_path,
const FilePath& output_private_key_path) OVERRIDE;
- virtual void OnPackFailure(
- const std::string& error_message,
- extensions::ExtensionCreator::ErrorType type) OVERRIDE;
+ virtual void OnPackFailure(const std::string& error_message,
+ ExtensionCreator::ErrorType type) OVERRIDE;
// Handle --pack-extension flag from the |cmd_line| by packing the specified
// extension. Returns false if the pack job failed.
@@ -36,7 +37,9 @@ class ExtensionsStartupUtil : public PackExtensionJob::Client {
scoped_refptr<PackExtensionJob> pack_job_;
bool pack_job_succeeded_;
- DISALLOW_COPY_AND_ASSIGN(ExtensionsStartupUtil);
+ DISALLOW_COPY_AND_ASSIGN(StartupHelper);
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSIONS_STARTUP_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_STARTUP_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698