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

Unified Diff: chrome/browser/mac/keystone_glue.h

Issue 334653006: mac: Prevent Address Book permissions dialog from erroneously appearing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to isherman comments. Created 6 years, 6 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/mac/keystone_glue.h
diff --git a/chrome/browser/mac/keystone_glue.h b/chrome/browser/mac/keystone_glue.h
index 5c21c369e80294ede452810b37885491d48c7f79..6be62ba2aef25739ccba1251b7e50437fb897efa 100644
--- a/chrome/browser/mac/keystone_glue.h
+++ b/chrome/browser/mac/keystone_glue.h
@@ -8,11 +8,13 @@
#include "base/strings/string16.h"
#if defined(__OBJC__)
-
#import <Foundation/Foundation.h>
#include "base/mac/scoped_authorizationref.h"
#import "base/mac/scoped_nsobject.h"
+#endif // __OBJC__
+
+namespace keystone_glue {
// Possible outcomes of various operations. A version may accompany some of
// these, but beware: a version is never required. For statuses that can be
@@ -37,13 +39,18 @@ enum AutoupdateStatus {
kAutoupdateNeedsPromotion, // no version
};
+} // namespace keystone_glue
Ilya Sherman 2014/06/17 19:55:01 I would prefer not to add this namespace as part o
erikchen 2014/06/17 22:36:06 I have reverted the namespace change, and well as
+
+#if defined(__OBJC__)
+
// kAutoupdateStatusNotification is the name of the notification posted when
-// -checkForUpdate and -installUpdate complete. This notification will be
-// sent with with its sender object set to the KeystoneGlue instance sending
-// the notification. Its userInfo dictionary will contain an AutoupdateStatus
+// -checkForUpdate and -installUpdate complete. This notification will be sent
+// with with its sender object set to the KeystoneGlue instance sending the
+// notification. Its userInfo dictionary will contain an AutoupdateStatus
// value as an intValue at key kAutoupdateStatusStatus. If a version is
// available (see AutoupdateStatus), it will be present at key
-// kAutoupdateStatusVersion.
+// kAutoupdateStatusVersion. This notification is always posted on the main
+// thread.
extern NSString* const kAutoupdateStatusNotification;
extern NSString* const kAutoupdateStatusStatus;
extern NSString* const kAutoupdateStatusVersion;
@@ -122,7 +129,7 @@ enum BrandFileType {
// Accessor for the kAutoupdateStatusStatus field of recentNotification_'s
// userInfo dictionary.
-- (AutoupdateStatus)recentStatus;
+- (keystone_glue::AutoupdateStatus)recentStatus;
// Returns YES if an asynchronous operation is pending: if an update check or
// installation attempt is currently in progress.
« no previous file with comments | « no previous file | chrome/browser/mac/keystone_glue.mm » ('j') | chrome/browser/ui/autofill/chrome_autofill_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698