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

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

Issue 393803002: [Wallpaper Picker] s/commondatastorage.googleapis.com/storage.googleapis.com/g (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/wallpaper_manager/js/constants.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/chromeos/extensions/wallpaper_private_api.h" 5 #include "chrome/browser/chromeos/extensions/wallpaper_private_api.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "ash/desktop_background/desktop_background_controller.h" 10 #include "ash/desktop_background/desktop_background_controller.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 namespace set_custom_wallpaper_layout = 47 namespace set_custom_wallpaper_layout =
48 wallpaper_private::SetCustomWallpaperLayout; 48 wallpaper_private::SetCustomWallpaperLayout;
49 namespace get_thumbnail = wallpaper_private::GetThumbnail; 49 namespace get_thumbnail = wallpaper_private::GetThumbnail;
50 namespace save_thumbnail = wallpaper_private::SaveThumbnail; 50 namespace save_thumbnail = wallpaper_private::SaveThumbnail;
51 namespace get_offline_wallpaper_list = 51 namespace get_offline_wallpaper_list =
52 wallpaper_private::GetOfflineWallpaperList; 52 wallpaper_private::GetOfflineWallpaperList;
53 53
54 namespace { 54 namespace {
55 55
56 #if defined(GOOGLE_CHROME_BUILD) 56 #if defined(GOOGLE_CHROME_BUILD)
57 const char kWallpaperManifestBaseURL[] = "https://commondatastorage.googleapis." 57 const char kWallpaperManifestBaseURL[] =
58 "com/chromeos-wallpaper-public/manifest_"; 58 "https://storage.googleapis.com/chromeos-wallpaper-public/manifest_";
59 #endif 59 #endif
60 60
61 bool IsOEMDefaultWallpaper() { 61 bool IsOEMDefaultWallpaper() {
62 return CommandLine::ForCurrentProcess()->HasSwitch( 62 return CommandLine::ForCurrentProcess()->HasSwitch(
63 ash::switches::kAshDefaultWallpaperIsOem); 63 ash::switches::kAshDefaultWallpaperIsOem);
64 } 64 }
65 65
66 // Saves |data| as |file_name| to directory with |key|. Return false if the 66 // Saves |data| as |file_name| to directory with |key|. Return false if the
67 // directory can not be found/created or failed to write file. 67 // directory can not be found/created or failed to write file.
68 bool SaveData(int key, const std::string& file_name, const std::string& data) { 68 bool SaveData(int key, const std::string& file_name, const std::string& data) {
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 this, file_list)); 886 this, file_list));
887 } 887 }
888 888
889 void WallpaperPrivateGetOfflineWallpaperListFunction::OnComplete( 889 void WallpaperPrivateGetOfflineWallpaperListFunction::OnComplete(
890 const std::vector<std::string>& file_list) { 890 const std::vector<std::string>& file_list) {
891 base::ListValue* results = new base::ListValue(); 891 base::ListValue* results = new base::ListValue();
892 results->AppendStrings(file_list); 892 results->AppendStrings(file_list);
893 SetResult(results); 893 SetResult(results);
894 SendResponse(true); 894 SendResponse(true);
895 } 895 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/wallpaper_manager/js/constants.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698