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

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

Issue 10391075: convert chromeos file manager to loadTimeData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 7 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/file_manager/js/file_manager.js » ('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 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 SET_STRING(IDS_FILE_BROWSER, SEARCH_EXPAND); 1515 SET_STRING(IDS_FILE_BROWSER, SEARCH_EXPAND);
1516 1516
1517 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_MENU_ITEM); 1517 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_MENU_ITEM);
1518 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_CAPTION); 1518 SET_STRING(IDS_FILE_BROWSER, CHANGE_DEFAULT_CAPTION);
1519 SET_STRING(IDS_FILE_BROWSER, DEFAULT_ACTION_LABEL); 1519 SET_STRING(IDS_FILE_BROWSER, DEFAULT_ACTION_LABEL);
1520 1520
1521 SET_STRING(IDS_FILE_BROWSER, DETAIL_VIEW_TOOLTIP); 1521 SET_STRING(IDS_FILE_BROWSER, DETAIL_VIEW_TOOLTIP);
1522 SET_STRING(IDS_FILE_BROWSER, THUMBNAIL_VIEW_TOOLTIP); 1522 SET_STRING(IDS_FILE_BROWSER, THUMBNAIL_VIEW_TOOLTIP);
1523 #undef SET_STRING 1523 #undef SET_STRING
1524 1524
1525 dict->SetString("PDF_VIEW_ENABLED", 1525 dict->SetBoolean("PDF_VIEW_ENABLED",
1526 file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf") ? 1526 file_manager_util::ShouldBeOpenedWithPdfPlugin(profile(), ".pdf"));
1527 "true" : "false");
1528 1527
1529 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict); 1528 ChromeURLDataManager::DataSource::SetFontAndTextDirection(dict);
1530 1529
1531 if (gdata::util::IsGDataAvailable(profile())) 1530 dict->SetBoolean("ENABLE_GDATA", gdata::util::IsGDataAvailable(profile()));
1532 dict->SetString("ENABLE_GDATA", "1");
1533 1531
1534 #if defined(USE_ASH) 1532 #if defined(USE_ASH)
1535 dict->SetString("ASH", "1"); 1533 dict->SetBoolean("ASH", true);
1534 #else
1535 dict->SetBoolean("ASH", false);
1536 #endif 1536 #endif
1537 1537
1538 return true; 1538 return true;
1539 } 1539 }
1540 1540
1541 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() { 1541 GetGDataFilePropertiesFunction::GetGDataFilePropertiesFunction() {
1542 } 1542 }
1543 1543
1544 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() { 1544 GetGDataFilePropertiesFunction::~GetGDataFilePropertiesFunction() {
1545 } 1545 }
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
2120 else if (active_network->type() == chromeos::TYPE_CELLULAR) 2120 else if (active_network->type() == chromeos::TYPE_CELLULAR)
2121 type_string = "cellular"; 2121 type_string = "cellular";
2122 else 2122 else
2123 type_string = "ethernet"; // Currently we do not care about other types. 2123 type_string = "ethernet"; // Currently we do not care about other types.
2124 2124
2125 value->SetString("type", type_string); 2125 value->SetString("type", type_string);
2126 result_.reset(value.release()); 2126 result_.reset(value.release());
2127 2127
2128 return true; 2128 return true;
2129 } 2129 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/js/file_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698