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

Side by Side Diff: chrome/browser/chromeos/extensions/file_browser_private_api.cc

Issue 10068007: Implement Content Security Policy for the File Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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/chromeos/extensions/file_browser_private_api.h" 5 #include "chrome/browser/chromeos/extensions/file_browser_private_api.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1481 1481
1482 dict->SetString("PDF_VIEW_ENABLED", 1482 dict->SetString("PDF_VIEW_ENABLED",
1483 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ? 1483 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ?
1484 "true" : "false"); 1484 "true" : "false");
1485 1485
1486 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); 1486 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
1487 1487
1488 if (gdata::util::IsGDataAvailable(profile_)) 1488 if (gdata::util::IsGDataAvailable(profile_))
1489 dict->SetString("ENABLE_GDATA", "1"); 1489 dict->SetString("ENABLE_GDATA", "1");
1490 1490
1491 #if defined(USE_ASH)
1492 dict->SetString("ASH", "1");
1493 #endif
1494
1491 return true; 1495 return true;
1492 } 1496 }
1493 1497
1494 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() { 1498 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() {
1495 } 1499 }
1496 1500
1497 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() { 1501 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() {
1498 } 1502 }
1499 1503
1500 void GetGDataFilePropertiesFunction::DoOperation( 1504 void GetGDataFilePropertiesFunction::DoOperation(
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1972 if (value->GetBoolean("cellularDisabled", &tmp)) { 1976 if (value->GetBoolean("cellularDisabled", &tmp)) {
1973 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp); 1977 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp);
1974 } 1978 }
1975 1979
1976 if (value->GetBoolean("hostedFilesDisabled", &tmp)) { 1980 if (value->GetBoolean("hostedFilesDisabled", &tmp)) {
1977 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp); 1981 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp);
1978 } 1982 }
1979 1983
1980 return true; 1984 return true;
1981 } 1985 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698