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

Side by Side Diff: chrome/browser/ui/app_list/start_page_service.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/app_list/start_page_service.h" 5 #include "chrome/browser/ui/app_list/start_page_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 recheck_delay = backoff_entry_.GetTimeUntilRelease(); 669 recheck_delay = backoff_entry_.GetTimeUntilRelease();
670 } else { 670 } else {
671 // If we received information, even if there's no doodle, reset the backoff 671 // If we received information, even if there's no doodle, reset the backoff
672 // entry and start rechecking for the doodle at the maximum interval. 672 // entry and start rechecking for the doodle at the maximum interval.
673 backoff_entry_.Reset(); 673 backoff_entry_.Reset();
674 recheck_delay = base::TimeDelta::FromMilliseconds(kMaximumRecheckDelayMs); 674 recheck_delay = base::TimeDelta::FromMilliseconds(kMaximumRecheckDelayMs);
675 675
676 if (contents_ && contents_->GetWebUI()) { 676 if (contents_ && contents_->GetWebUI()) {
677 contents_->GetWebUI()->CallJavascriptFunctionUnsafe( 677 contents_->GetWebUI()->CallJavascriptFunctionUnsafe(
678 "appList.startPage.onAppListDoodleUpdated", *doodle_json, 678 "appList.startPage.onAppListDoodleUpdated", *doodle_json,
679 base::StringValue( 679 base::Value(UIThreadSearchTermsData(profile_).GoogleBaseURLValue()));
680 UIThreadSearchTermsData(profile_).GoogleBaseURLValue()));
681 } 680 }
682 } 681 }
683 682
684 // Check for a new doodle. 683 // Check for a new doodle.
685 content::BrowserThread::PostDelayedTask( 684 content::BrowserThread::PostDelayedTask(
686 content::BrowserThread::UI, FROM_HERE, 685 content::BrowserThread::UI, FROM_HERE,
687 base::Bind(&StartPageService::FetchDoodleJson, 686 base::Bind(&StartPageService::FetchDoodleJson,
688 weak_factory_.GetWeakPtr()), 687 weak_factory_.GetWeakPtr()),
689 recheck_delay); 688 recheck_delay);
690 } 689 }
691 690
692 } // namespace app_list 691 } // namespace app_list
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698