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

Side by Side Diff: ios/chrome/browser/sessions/session_util.mm

Issue 2585233003: Upstream Chrome on iOS source code [2/11]. (Closed)
Patch Set: Created 4 years 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
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ios/chrome/browser/sessions/session_util.h"
6
7 #include "base/files/file_path.h"
8 #include "base/strings/sys_string_conversions.h"
9 #import "ios/chrome/browser/sessions/session_service.h"
10 #include "ios/web/public/browser_state.h"
11
12 namespace session_util {
13
14 // Deletes the file containing the commands for the last session.
15 void DeleteLastSession(web::BrowserState* browser_state) {
16 SessionServiceIOS* session_service = [SessionServiceIOS sharedService];
17 NSString* path =
18 base::SysUTF8ToNSString(browser_state->GetStatePath().value());
19 [session_service deleteLastSession:path];
20 }
21
22 } // namespace session_util
OLDNEW
« no previous file with comments | « ios/chrome/browser/sessions/session_util.h ('k') | ios/chrome/browser/sessions/session_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698