summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/most_visited_handler.cc
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 20:15:19 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-23 20:15:19 +0000
commite1504fffb179cca7be9b9c8a7356904e0d293156 (patch)
tree17709b3e43189bc5a10d3cf025da1540aaef39d5 /chrome/browser/dom_ui/most_visited_handler.cc
parent37f4d8584bc68322aa45319f1a8b6879a2b2f4e6 (diff)
downloadchromium_src-e1504fffb179cca7be9b9c8a7356904e0d293156.zip
chromium_src-e1504fffb179cca7be9b9c8a7356904e0d293156.tar.gz
chromium_src-e1504fffb179cca7be9b9c8a7356904e0d293156.tar.bz2
NTP: Only show the chrome web store when apps are enabled.
BUG=49972 TEST=Manually Review URL: http://codereview.chromium.org/3048020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/most_visited_handler.cc')
-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;