Index: chrome/browser/browser_about_handler.h |
diff --git a/chrome/browser/browser_about_handler.h b/chrome/browser/browser_about_handler.h |
index d7eaf6be1f3afca4283c0c980bf068e07cf919b5..2c0f26f3662ef694e4a75f15e6319eabdc61e2b6 100644 |
--- a/chrome/browser/browser_about_handler.h |
+++ b/chrome/browser/browser_about_handler.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -80,4 +80,33 @@ void AboutTcmallocRendererCallback(base::ProcessId pid, |
const std::string& output); |
#endif // defined(USE_TCMALLOC) |
+#if defined(OS_ANDROID) |
+class AboutAndroidApp { |
Evan Stade
2012/08/03 17:58:01
why is this class in this file?
you need to docum
|
+ public: |
+ typedef std::string (*Callback)(); |
+ |
+ static std::string GetAppLabel() { |
+ return label_getter_ != NULL ? label_getter_() : ""; |
+ } |
+ |
+ static std::string GetAppVersionName() { |
+ return version_name_getter_ != NULL ? version_name_getter_() : ""; |
+ } |
+ |
+ static std::string GetAppVersionCode() { |
+ return version_code_getter_ != NULL ? version_code_getter_() : ""; |
+ } |
+ |
+ static void RegisterGetters(Callback label_getter, |
+ Callback version_name_getter, Callback version_code_getter); |
Evan Stade
2012/08/03 17:58:01
too much indent
|
+ |
+ private: |
+ static Callback label_getter_; |
+ static Callback version_name_getter_; |
+ static Callback version_code_getter_; |
+ |
+ DISALLOW_IMPLICIT_CONSTRUCTORS(AboutAndroidApp); |
+}; |
+#endif |
+ |
#endif // CHROME_BROWSER_BROWSER_ABOUT_HANDLER_H_ |