Index: chrome/browser/first_run/first_run.cc |
diff --git a/chrome/browser/first_run/first_run.cc b/chrome/browser/first_run/first_run.cc |
index 8ce4f47c52c09ddc0783adae8c59f1bfcfb02a02..3f2efe70005026e40f2bb7acdef20fa0dd023a22 100644 |
--- a/chrome/browser/first_run/first_run.cc |
+++ b/chrome/browser/first_run/first_run.cc |
@@ -561,6 +561,21 @@ void LogFirstRunMetric(FirstRunBubbleMetric metric) { |
NUM_FIRST_RUN_BUBBLE_METRICS); |
} |
+namespace { |
+CommandLine* GetExtraArgumentsInstance() { |
+ CR_DEFINE_STATIC_LOCAL(CommandLine, arguments, (CommandLine::NoProgram())); |
+ return &arguments; |
+} |
+} // namespace |
+ |
+void SetExtraArgumentsForImportProcess(const CommandLine& arguments) { |
+ GetExtraArgumentsInstance()->AppendArguments(arguments, false); |
+} |
+ |
+const CommandLine& GetExtraArgumentsForImportProcess() { |
+ return *GetExtraArgumentsInstance(); |
+} |
+ |
// static |
void FirstRunBubbleLauncher::ShowFirstRunBubbleSoon() { |
SetShowFirstRunBubblePref(true); |