diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-23 20:15:19 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-23 20:15:19 +0000 |
commit | e1504fffb179cca7be9b9c8a7356904e0d293156 (patch) | |
tree | 17709b3e43189bc5a10d3cf025da1540aaef39d5 /chrome/browser/dom_ui/most_visited_handler.cc | |
parent | 37f4d8584bc68322aa45319f1a8b6879a2b2f4e6 (diff) | |
download | chromium_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.cc | 4 |
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; |