Eliminate duplicate search result entries.
Eliminate duplicate search result entries.

The history page renders each set of history results incrementally.  It adds any
results it gets back to the views "currentPages_" array.  On any following
search query result it will go through and render the entire currentPages_
array.  This sets an isRendered flag on any pages that have already been
rendered.

This method is already used in the regular history service response.

BUG=35933
TEST=In a profile with a few months of history, search for something unique that
only would show up once.

Review URL: http://codereview.chromium.org/668007

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@40578 0039d316-1c4b-4281-b951-d872f2087c98

pozdnyakov/chromium-crosswalk,patrickm/chromium.src,hujiajie/pa-chromium,littlstar/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,hgl888/chromium-crosswalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,robclark/chromium,dednal/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,hujiajie/pa-chromium,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,timopulkkinen/BubbleFish,patrickm/chromium.src,axinging/chromium-crosswalk,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,robclark/chromium,littlstar/chromium.src,ondra-novak/chromium.src,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,robclark/chromium,Pluto-tv/chromium-crosswalk,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,anirudhSK/chromium,chuan9/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,robclark/chromium,M4sse/chromium.src,mogoweb/chromium-crosswalk,markYoungH/chromium.src,ChromiumWebApps/chromium,Just-D/chromium-1,chuan9/chromium-crosswalk,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,ChromiumWebApps/chromium,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,ltilve/chromium,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,M4sse/chromium.src,dednal/chromium.src,keishi/chromium,littlstar/chromium.src,krieger-od/nwjs_chromium.src,ltilve/chromium,timopulkkinen/BubbleFish,anirudhSK/chromium,dushu1203/chromium.src,rogerwang/chromium,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,M4sse/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,M4sse/chromium.src,patrickm/chromium.src,Chilledheart/chromium,Just-D/chromium-1,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chromium.src,keishi/chromium,axinging/chromium-crosswalk,Chilledheart/chromium,hgl888/chromium-crosswalk-efl,ltilve/chromium,zcbenz/cefode-chromium,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk,ondra-novak/chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,robclark/chromium,keishi/chromium,littlstar/chromium.src,markYoungH/chromium.src,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,patrickm/chromium.src,zcbenz/cefode-chromium,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,axinging/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,junmin-zhu/chromium-rivertrail,crosswalk-project/chromium-crosswalk-efl,PeterWangIntel/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,dushu1203/chromium.src,jaruba/chromium.src,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,nacl-webkit/chrome_deps,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,markYoungH/chromium.src,dednal/chromium.src,dednal/chromium.src,Fireblend/chromium-crosswalk,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,PeterWangIntel/chromium-crosswalk,ondra-novak/chromium.src,dednal/chromium.src,jaruba/chromium.src,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,rogerwang/chromium,mogoweb/chromium-crosswalk,anirudhSK/chromium,anirudhSK/chromium,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,robclark/chromium,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,anirudhSK/chromium,keishi/chromium,Fireblend/chromium-crosswalk,axinging/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ChromiumWebApps/chromium,ChromiumWebApps/chromium,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,dushu1203/chromium.src,ChromiumWebApps/chromium,littlstar/chromium.src,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,keishi/chromium,Jonekee/chromium.src,robclark/chromium,Pluto-tv/chromium-crosswalk,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,M4sse/chromium.src,keishi/chromium,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,axinging/chromium-crosswalk,robclark/chromium,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,robclark/chromium,jaruba/chromium.src,mogoweb/chromium-crosswalk,Jonekee/chromium.src,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,dednal/chromium.src,chuan9/chromium-crosswalk,Jonekee/chromium.src,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,nacl-webkit/chrome_deps,rogerwang/chromium,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,robclark/chromium,hujiajie/pa-chromium,zcbenz/cefode-chromium,Jonekee/chromium.src,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,Pluto-tv/chromium-crosswalk,timopulkkinen/BubbleFish,patrickm/chromium.src,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,ChromiumWebApps/chromium,dushu1203/chromium.src,markYoungH/chromium.src,Just-D/chromium-1,Chilledheart/chromium,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,rogerwang/chromium,keishi/chromium,keishi/chromium,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,keishi/chromium,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,anirudhSK/chromium,bright-sparks/chromium-spacewalk,Just-D/chromium-1,markYoungH/chromium.src,Just-D/chromium-1,markYoungH/chromium.src,zcbenz/cefode-chromium,jaruba/chromium.src,rogerwang/chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,jaruba/chromium.src,dednal/chromium.src,keishi/chromium,ltilve/chromium,patrickm/chromium.src,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,hgl888/chromium-crosswalk,Jonekee/chromium.src,nacl-webkit/chrome_deps,jaruba/chromium.src,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,patrickm/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,hgl888/chromium-crosswalk,dushu1203/chromium.src,Jonekee/chromium.src,TheTypoMaster/chromium-crosswalk,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,ltilve/chromium,dushu1203/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,markYoungH/chromium.src,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,keishi/chromium,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,zcbenz/cefode-chromium,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,krieger-od/nwjs_chromium.src,Chilledheart/chromium,zcbenz/cefode-chromium,M4sse/chromium.src,ChromiumWebApps/chromium,zcbenz/cefode-chromium,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,ondra-novak/chromium.src,Chilledheart/chromium,ltilve/chromium,littlstar/chromium.src,mohamed--abdel-maksoud/chromium.src,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,rogerwang/chromium,patrickm/chromium.src,ltilve/chromium,rogerwang/chromium,patrickm/chromium.src,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,anirudhSK/chromium,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk,bright-sparks/chromium-spacewalk,jaruba/chromium.src,dushu1203/chromium.src,zcbenz/cefode-chromium,markYoungH/chromium.src,axinging/chromium-crosswalk,Fireblend/chromium-crosswalk,ltilve/chromium,ondra-novak/chromium.src,Pluto-tv/chromium-crosswalk,timopulkkinen/BubbleFish,anirudhSK/chromium,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,ondra-novak/chromium.src,hujiajie/pa-chromium