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

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: Add missing flag default Created 4 years, 6 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/about_flags.cc
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index 36a5d552f0d6c80b3cbce7a19c51c88398d28f1c..66ee501cf041993eae871280f7d09032e406a313 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -452,6 +452,20 @@ const FeatureEntry::Choice kProgressBarAnimationChoices[] = {
{ IDS_FLAGS_PROGRESS_BAR_ANIMATION_FAST_START,
switches::kProgressBarAnimation, "fast-start" },
};
+
+const FeatureEntry::Choice kProgressBarCompletionChoices[] = {
+ {IDS_GENERIC_EXPERIMENT_CHOICE_DEFAULT, "", "" },
+ {IDS_FLAGS_PROGRESS_BAR_COMPLETION_LOAD_EVENT,
+ switches::kProgressBarCompletion, "loadEvent"},
+ {IDS_FLAGS_PROGRESS_BAR_COMPLETION_RESOURCES_BEFORE_DCL,
+ switches::kProgressBarCompletion, "resourcesBeforeDOMContentLoaded"},
+ {IDS_FLAGS_PROGRESS_BAR_COMPLETION_DOM_CONTENT_LOADED,
+ switches::kProgressBarCompletion, "domContentLoaded"},
+ {IDS_FLAGS_PROGRESS_BAR_COMPLETION_RESOURCES_BEFORE_DCL_AND_SAME_ORIGIN_IFRAMES,
+ switches::kProgressBarCompletion,
+ "resourcesBeforeDOMContentLoadedAndSameOriginIFrames"},
+};
+
#endif // defined(OS_ANDROID)
#if defined(OS_CHROMEOS)
@@ -1638,6 +1652,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)
{"tab-switcher-theme-colors", IDS_FLAGS_TAB_SWITCHER_THEME_COLORS_NAME,
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | content/browser/frame_host/frame_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698