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

Side by Side Diff: chrome/browser/mac/keystone_glue.h

Issue 7655056: Enable brand codes and master preferences on the Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tweaky Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ 5 #ifndef CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_
6 #define CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ 6 #define CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/file_path.h"
9 #include "base/string16.h" 10 #include "base/string16.h"
10 11
11 #if defined(__OBJC__) 12 #if defined(__OBJC__)
12 13
13 #import <Foundation/Foundation.h> 14 #import <Foundation/Foundation.h>
14 15
15 #import "base/memory/scoped_nsobject.h" 16 #import "base/memory/scoped_nsobject.h"
16 #include "chrome/browser/mac/scoped_authorizationref.h" 17 #include "chrome/browser/mac/scoped_authorizationref.h"
17 18
18 // Possible outcomes of various operations. A version may accompany some of 19 // Possible outcomes of various operations. A version may accompany some of
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 // Called when an installUpdate: notification completes. 192 // Called when an installUpdate: notification completes.
192 - (void)installUpdateComplete:(NSNotification*)notification; 193 - (void)installUpdateComplete:(NSNotification*)notification;
193 194
194 @end // @interface KeystoneGlue(ExposedForTesting) 195 @end // @interface KeystoneGlue(ExposedForTesting)
195 196
196 #endif // __OBJC__ 197 #endif // __OBJC__
197 198
198 // Functions that may be accessed from non-Objective-C C/C++ code. 199 // Functions that may be accessed from non-Objective-C C/C++ code.
199 namespace keystone_glue { 200 namespace keystone_glue {
200 201
202 // Returns the path to the master preferences file.
203 FilePath MasterPrefsPath();
Mark Mentovai 2011/08/23 16:25:12 I’m unconvinced that this belongs as part of the k
TVL 2011/08/23 16:51:31 Second, this really doesn't seem like it should go
204
205 // Returns the brand code of the installation.
206 std::string BrandCode();
Mark Mentovai 2011/08/23 16:25:12 As opposed to this, which does.
207
201 // True if Keystone is enabled. 208 // True if Keystone is enabled.
202 bool KeystoneEnabled(); 209 bool KeystoneEnabled();
203 210
204 // The version of the application currently installed on disk. 211 // The version of the application currently installed on disk.
205 string16 CurrentlyInstalledVersion(); 212 string16 CurrentlyInstalledVersion();
206 213
207 } // namespace keystone_glue 214 } // namespace keystone_glue
208 215
209 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_ 216 #endif // CHROME_BROWSER_MAC_KEYSTONE_GLUE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698