Index: printing/print_settings.cc |
diff --git a/printing/print_settings.cc b/printing/print_settings.cc |
index b1c50c9e372bf9fa0008e1b1a568323ee995e906..379f521f5bd7f6436f39e69b14f1cae520202265 100644 |
--- a/printing/print_settings.cc |
+++ b/printing/print_settings.cc |
@@ -11,6 +11,15 @@ |
namespace printing { |
+std::string g_user_agent; |
Lei Zhang
2015/11/05 21:37:23
I think this creates a static initializer. You pro
hal.canary
2015/11/05 22:16:48
done
|
+void SetAgent(const std::string& user_agent) { |
+ g_user_agent = user_agent; |
Lei Zhang
2015/11/05 21:37:23
2 space indents, not 4.
hal.canary
2015/11/05 22:16:48
done
|
+} |
+const std::string& GetAgent() { |
+ return g_user_agent; |
+} |
+ |
+ |
#if defined(USE_CUPS) |
void GetColorModelForMode( |
int color_mode, std::string* color_setting_name, std::string* color_value) { |