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

Unified Diff: chrome/browser/chrome_browser_application_mac.h

Issue 345051: Cleans up our autorelease handling so that we don't create a layered ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/chrome_browser_application_mac.h
===================================================================
--- chrome/browser/chrome_browser_application_mac.h (revision 30825)
+++ chrome/browser/chrome_browser_application_mac.h (working copy)
@@ -2,41 +2,38 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROME_APPLICATION_MAC_H_
-#define CHROME_BROWSER_CHROME_APPLICATION_MAC_H_
+#ifndef CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_
+#define CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_
#ifdef __OBJC__
-#import <AppKit/AppKit.h>
+#import "base/chrome_application_mac.h"
-@interface CrApplication : NSApplication
+@interface BrowserCrApplication : CrApplication
@end
-// Namespace for exception-reporting helper functions. Exposed for
-// testing purposes.
-namespace CrApplicationNSException {
+namespace chrome_browser_application_mac {
-// Bin for unknown exceptions.
+// Bin for unknown exceptions. Exposed for testing purposes.
extern const size_t kUnknownNSException;
// Returns the histogram bin for |exception| if it is one we track
-// specifically, or |kUnknownNSException| if unknown.
+// specifically, or |kUnknownNSException| if unknown. Exposed for testing
+// purposes.
size_t BinForException(NSException* exception);
-// Use UMA to track exception occurance.
+// Use UMA to track exception occurance. Exposed for testing purposes.
void RecordExceptionWithUma(NSException* exception);
-} // CrApplicationNSException
+} // namespace chrome_browser_application_mac
#endif // __OBJC__
-// CrApplicationCC provides access to CrApplication Objective-C selectors from
-// C++ code.
-namespace CrApplicationCC {
+namespace chrome_browser_application_mac {
// Calls -[NSApp terminate:].
void Terminate();
-} // namespace CrApplicationCC
+} // namespace chrome_browser_application_mac
-#endif // CHROME_BROWSER_CHROME_APPLICATION_MAC_H_
+#endif // CHROME_BROWSER_CHROME_BROWSER_APPLICATION_MAC_H_

Powered by Google App Engine
This is Rietveld 408576698