| Index: content/common/content_switches_internal.cc
|
| diff --git a/content/common/content_switches_internal.cc b/content/common/content_switches_internal.cc
|
| index e3949845e3ebb5b679cc324634f2960e084580e4..5373617d817ff15111cf1633e80b13d68b8c9469 100644
|
| --- a/content/common/content_switches_internal.cc
|
| +++ b/content/common/content_switches_internal.cc
|
| @@ -81,4 +81,25 @@ bool IsUseZoomForDSFEnabled() {
|
| return enabled;
|
| }
|
|
|
| +ProgressBarCompletionOptions GetProgressBarCompletionOptions() {
|
| +#if defined(OS_ANDROID)
|
| + const base::CommandLine& command_line =
|
| + *base::CommandLine::ForCurrentProcess();
|
| + std::string progress_bar_completion =
|
| + command_line.GetSwitchValueASCII(switches::kProgressBarCompletion);
|
| + if (progress_bar_completion == "loadEvent")
|
| + return ProgressBarCompletionOptions::LOAD_EVENT;
|
| + if (progress_bar_completion == "resourcesBeforeDOMContentLoaded")
|
| + return ProgressBarCompletionOptions::RESOURCES_BEFORE_DCL;
|
| + if (progress_bar_completion == "domContentLoaded")
|
| + return ProgressBarCompletionOptions::DOM_CONTENT_LOADED;
|
| + if (progress_bar_completion ==
|
| + "resourcesBeforeDOMContentLoadedAndSameOriginIframes") {
|
| + return ProgressBarCompletionOptions::
|
| + RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES;
|
| + }
|
| +#endif
|
| + return ProgressBarCompletionOptions::LOAD_EVENT;
|
| +}
|
| +
|
| } // namespace content
|
|
|