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

Unified Diff: chrome/browser/about_flags.cc

Issue 1860743002: Add a flag to change when android's progress bar completes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 613bf4cb48176d7143dcd74e090f1862b13fbba5..465c400f595796fe3ee0f240f95fe4d11117b2ea 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -434,6 +434,16 @@ const FeatureEntry::Choice kProgressBarAnimationChoices[] = {
{ IDS_FLAGS_PROGRESS_BAR_ANIMATION_FAST_START,
switches::kProgressBarAnimation, "fast-start" },
};
+
+const FeatureEntry::Choice kProgressBarCompletionChoices[] = {
+ { IDS_FLAGS_PROGRESS_BAR_COMPLETION_LOAD_EVENT,
+ switches::kProgressBarCompletion, "loadEvent" },
+ { IDS_FLAGS_PROGRESS_BAR_COMPLETION_DCL_AND_IMAGES,
+ switches::kProgressBarCompletion, "dclAndImages" },
+ { IDS_FLAGS_PROGRESS_BAR_COMPLETION_DOM_CONTENT_LOADED,
+ switches::kProgressBarCompletion, "domContentLoaded" },
+};
+
#endif // defined(OS_ANDROID)
#if defined(OS_CHROMEOS)
@@ -1568,6 +1578,9 @@ const FeatureEntry kFeatureEntries[] = {
{"progress-bar-animation", IDS_FLAGS_PROGRESS_BAR_ANIMATION_NAME,
IDS_FLAGS_PROGRESS_BAR_ANIMATION_DESCRIPTION, kOsAndroid,
MULTI_VALUE_TYPE(kProgressBarAnimationChoices)},
+ {"progress-bar-completion", IDS_FLAGS_PROGRESS_BAR_COMPLETION_NAME,
+ IDS_FLAGS_PROGRESS_BAR_COMPLETION_DESCRIPTION, kOsAndroid,
+ MULTI_VALUE_TYPE(kProgressBarCompletionChoices)},
#endif // defined(OS_ANDROID)
#if defined(OS_ANDROID)
{"offline-bookmarks", IDS_FLAGS_OFFLINE_BOOKMARKS_NAME,

Powered by Google App Engine
This is Rietveld 408576698