summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/dom_ui/most_visited_handler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/most_visited_handler.cc b/chrome/browser/dom_ui/most_visited_handler.cc
index 29905f4..401827a 100644
--- a/chrome/browser/dom_ui/most_visited_handler.cc
+++ b/chrome/browser/dom_ui/most_visited_handler.cc
@@ -389,7 +389,9 @@ void MostVisitedHandler::SetPagesValue(std::vector<PageUsageData*>* data) {
size_t pre_populated_index = 0;
const std::vector<MostVisitedPage> pre_populated_pages =
MostVisitedHandler::GetPrePopulatedPages();
- bool add_chrome_store = !HasApps();
+ bool add_chrome_store =
+ CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableApps) &&
+ !HasApps();
while (output_index < kMostVisitedPages) {
bool found = false;