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

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: Rebase 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
« no previous file with comments | « no previous file | chrome/browser/resources/component_extension_resources.grd » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1495 1495
1496 dict->SetString("PDF_VIEW_ENABLED", 1496 dict->SetString("PDF_VIEW_ENABLED",
1497 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ? 1497 file_manager_util::ShouldBeOpenedWithPdfPlugin(".pdf") ?
1498 "true" : "false"); 1498 "true" : "false");
1499 1499
1500 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); 1500 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
1501 1501
1502 if (gdata::util::IsGDataAvailable(profile_)) 1502 if (gdata::util::IsGDataAvailable(profile_))
1503 dict->SetString("ENABLE_GDATA", "1"); 1503 dict->SetString("ENABLE_GDATA", "1");
1504 1504
1505 #if defined(USE_ASH)
1506 dict->SetString("ASH", "1");
1507 #endif
1508
1505 return true; 1509 return true;
1506 } 1510 }
1507 1511
1508 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() { 1512 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() {
1509 } 1513 }
1510 1514
1511 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() { 1515 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() {
1512 } 1516 }
1513 1517
1514 void GetGDataFilePropertiesFunction::DoOperation( 1518 void GetGDataFilePropertiesFunction::DoOperation(
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 if (value->GetBoolean("cellularDisabled", &tmp)) { 1990 if (value->GetBoolean("cellularDisabled", &tmp)) {
1987 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp); 1991 service->SetBoolean(prefs::kDisableGDataOverCellular, tmp);
1988 } 1992 }
1989 1993
1990 if (value->GetBoolean("hostedFilesDisabled", &tmp)) { 1994 if (value->GetBoolean("hostedFilesDisabled", &tmp)) {
1991 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp); 1995 service->SetBoolean(prefs::kDisableGDataHostedFiles, tmp);
1992 } 1996 }
1993 1997
1994 return true; 1998 return true;
1995 } 1999 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/component_extension_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698