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

Side by Side Diff: chrome/browser/ui/webui/chromeos/drive_internals_ui.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/webui/chromeos/drive_internals_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/drive_internals_ui.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 integration_service->ClearCacheAndRemountFileSystem( 584 integration_service->ClearCacheAndRemountFileSystem(
585 base::Bind(&DriveInternalsWebUIHandler::ResetFinished, 585 base::Bind(&DriveInternalsWebUIHandler::ResetFinished,
586 weak_ptr_factory_.GetWeakPtr())); 586 weak_ptr_factory_.GetWeakPtr()));
587 } 587 }
588 } 588 }
589 589
590 void DriveInternalsWebUIHandler::ResetFinished(bool success) { 590 void DriveInternalsWebUIHandler::ResetFinished(bool success) {
591 DCHECK_CURRENTLY_ON(BrowserThread::UI); 591 DCHECK_CURRENTLY_ON(BrowserThread::UI);
592 592
593 web_ui()->CallJavascriptFunctionUnsafe("updateResetStatus", 593 web_ui()->CallJavascriptFunctionUnsafe("updateResetStatus",
594 base::FundamentalValue(success)); 594 base::Value(success));
595 } 595 }
596 596
597 void DriveInternalsWebUIHandler::ListFileEntries(const base::ListValue* args) { 597 void DriveInternalsWebUIHandler::ListFileEntries(const base::ListValue* args) {
598 DCHECK_CURRENTLY_ON(BrowserThread::UI); 598 DCHECK_CURRENTLY_ON(BrowserThread::UI);
599 599
600 UpdateFileSystemContentsSection(); 600 UpdateFileSystemContentsSection();
601 } 601 }
602 602
603 void DriveInternalsWebUIHandler::UpdateDeltaUpdateStatusSection( 603 void DriveInternalsWebUIHandler::UpdateDeltaUpdateStatusSection(
604 drive::DebugInfoCollector* debug_info_collector) { 604 drive::DebugInfoCollector* debug_info_collector) {
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
899 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost); 899 content::WebUIDataSource::Create(chrome::kChromeUIDriveInternalsHost);
900 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS); 900 source->AddResourcePath("drive_internals.css", IDR_DRIVE_INTERNALS_CSS);
901 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS); 901 source->AddResourcePath("drive_internals.js", IDR_DRIVE_INTERNALS_JS);
902 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML); 902 source->SetDefaultResource(IDR_DRIVE_INTERNALS_HTML);
903 903
904 Profile* profile = Profile::FromWebUI(web_ui); 904 Profile* profile = Profile::FromWebUI(web_ui);
905 content::WebUIDataSource::Add(profile, source); 905 content::WebUIDataSource::Add(profile, source);
906 } 906 }
907 907
908 } // namespace chromeos 908 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698