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

Side by Side Diff: ios/chrome/browser/ui/webui/history/history_ui.mm

Issue 2519453002: [ObjC ARC] Converts ios/chrome/browser/ui/webui/history:history to ARC.Automatically generated AR… (Closed)
Patch Set: 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
« no previous file with comments | « ios/chrome/browser/ui/webui/history/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ios/chrome/browser/ui/webui/history/history_ui.h" 5 #include "ios/chrome/browser/ui/webui/history/history_ui.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/ref_counted_memory.h" 8 #include "base/memory/ref_counted_memory.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 11 matching lines...) Expand all
22 #include "ios/chrome/browser/signin/signin_manager_factory.h" 22 #include "ios/chrome/browser/signin/signin_manager_factory.h"
23 #include "ios/chrome/browser/ui/webui/history/browsing_history_handler.h" 23 #include "ios/chrome/browser/ui/webui/history/browsing_history_handler.h"
24 #include "ios/chrome/browser/ui/webui/history/metrics_handler.h" 24 #include "ios/chrome/browser/ui/webui/history/metrics_handler.h"
25 #include "ios/chrome/grit/ios_resources.h" 25 #include "ios/chrome/grit/ios_resources.h"
26 #include "ios/web/public/web_state/web_state.h" 26 #include "ios/web/public/web_state/web_state.h"
27 #include "ios/web/public/web_ui_ios_data_source.h" 27 #include "ios/web/public/web_ui_ios_data_source.h"
28 #include "ios/web/public/webui/web_ui_ios.h" 28 #include "ios/web/public/webui/web_ui_ios.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
31 31
32 #if !defined(__has_feature) || !__has_feature(objc_arc)
33 #error "This file requires ARC support."
34 #endif
35
32 static const char kStringsJsFile[] = "strings.js"; 36 static const char kStringsJsFile[] = "strings.js";
33 static const char kHistoryJsFile[] = "history.js"; 37 static const char kHistoryJsFile[] = "history.js";
34 static const char kOtherDevicesJsFile[] = "other_devices.js"; 38 static const char kOtherDevicesJsFile[] = "other_devices.js";
35 39
36 namespace { 40 namespace {
37 41
38 const char kIncognitoModeShortcut[] = 42 const char kIncognitoModeShortcut[] =
39 "(" 43 "("
40 "\xE2\x87\xA7" // Shift symbol (U+21E7 'UPWARDS WHITE ARROW'). 44 "\xE2\x87\xA7" // Shift symbol (U+21E7 'UPWARDS WHITE ARROW').
41 "\xE2\x8C\x98" // Command symbol (U+2318 'PLACE OF INTEREST SIGN'). 45 "\xE2\x8C\x98" // Command symbol (U+2318 'PLACE OF INTEREST SIGN').
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 162 }
159 163
160 HistoryUI::~HistoryUI() {} 164 HistoryUI::~HistoryUI() {}
161 165
162 // static 166 // static
163 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( 167 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes(
164 ui::ScaleFactor scale_factor) { 168 ui::ScaleFactor scale_factor) {
165 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( 169 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale(
166 IDR_HISTORY_FAVICON, scale_factor); 170 IDR_HISTORY_FAVICON, scale_factor);
167 } 171 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/webui/history/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698